Skip to content

Commit 6849e0e

Browse files
committed
Wait for Soroban to start before starting Dojo
1 parent bc13b57 commit 6849e0e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docker_entrypoint.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,12 @@ else
166166
soroban_process=""
167167
fi
168168

169-
# Start node services
170-
/home/node/app/wait-for-it.sh 127.0.0.1:3306 --timeout=720 --strict -- pm2-runtime -u node --raw /home/node/app/pm2.config.cjs &
169+
# Start dojo
170+
if [ "$SOROBAN_INSTALL" = "on" ]; then
171+
/home/node/app/wait-for-it.sh 127.0.0.1:4242 --timeout=720 --strict -- pm2-runtime -u node --raw /home/node/app/pm2.config.cjs &
172+
else
173+
/home/node/app/wait-for-it.sh 127.0.0.1:3306 --timeout=720 --strict -- pm2-runtime -u node --raw /home/node/app/pm2.config.cjs &
174+
fi
171175
backend_process=$!
172176

173177
# Start nginx

0 commit comments

Comments
 (0)