driftphp/demo

Failure on wait-and-run.sh causing the server to exit with code 2

nivpenso opened this issue · 1 comments

Following the guidelines of the installation after running this command:

docker-compose -f docker-compose/docker-compose.yml up --build

I'm getting this error:

: not found         | /wait-and-run.sh: line 3:
websocket_1         | /wait-and-run.sh: line 8: syntax error: unexpected "done" (expecting "do")
: not found         | /wait-and-run.sh: line 2:
: not found         | /wait-and-run.sh: line 3:
server_1            | /wait-and-run.sh: line 8: syntax error: unexpected "done" (expecting "do")
: not found         | /wait-and-run.sh: line 2:
: not found         | /wait-and-run.sh: line 3:
server_2            | /wait-and-run.sh: line 8: syntax error: unexpected "done" (expecting "do")
: not found         | /wait-and-run.sh: line 2:
: not found         | /wait-and-run.sh: line 3:
server_3            | /wait-and-run.sh: line 8: syntax error: unexpected "done" (expecting "do")
docker-compose_websocket_1 exited with code 2
server_1 exited with code 2
server_3 exited with code 2

Environment:
OS: Windows 10

This is due to line endings in Windows
you can read more about it here

quick fix:
remove all the \r from the wait-and-run.sh and then run the command again