@@ -199,6 +199,15 @@ vim front_end/.env # set the excetly host.
199199<summary >Beginner's recommendation!</summary >
200200
201201``` shell
202+ # Change the script file format from DOS to UNIX.
203+ sed -i " s/\r//" scripts/run_for_local.sh
204+ sed -i " s/^M//" scripts/run_for_local.sh
205+ # delete BOM
206+ sed -i ' 1s/^.*#//;s/\r$//' scripts/run_for_local.sh
207+ # check bom
208+ head -1 scripts/run_for_local.sh | od -c
209+ # 0000000 ! / b i n / b a s h \n
210+
202211# Front desk startup, log prints to the screen in real time, press ctrl+c to stop.
203212docker-compose -f docker-compose-windows.yaml up qanything_local
204213```
@@ -208,6 +217,9 @@ docker-compose -f docker-compose-windows.yaml up qanything_local
208217<summary >Recommended for experienced players!</summary >
209218
210219``` shell
220+ # The script file is changed from DOS format to Unix format.
221+ sed -i " s/\r//" scripts/run_for_local.sh
222+ sed -i " s/^M//" scripts/run_for_local.sh
211223# Background startup, ctrl+c will not stop.
212224docker-compose -f docker-compose-windows.yaml up -d
213225# Execute the following command to view the log.
@@ -217,12 +229,6 @@ docker-compose -f docker-compose-windows.yaml down
217229```
218230</details >
219231
220- 2 . Double click run_in_windows.bat
221- 3 . Execute command line:
222- ``` shell
223- Start-Process -FilePath " .\run_in_windows.bat" -Wait -NoNewWindow
224- ```
225-
226232##### in the Linux system
227233<details >
228234<summary >Beginner's recommendation!</summary >
0 commit comments