From c0405157e40f1d18472965c5e5ae88cf48cdbe68 Mon Sep 17 00:00:00 2001 From: NavyStack <137406386+NavyStack@users.noreply.github.com> Date: Tue, 19 Dec 2023 09:31:22 +0900 Subject: [PATCH] Update start.sh --- start.sh | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/start.sh b/start.sh index d7f00873..5e10d639 100755 --- a/start.sh +++ b/start.sh @@ -1,13 +1,4 @@ #!/bin/bash set -e - -for i in $(seq 1 30); do - echo "Attempting to initialize the database and start the Planka (attempt $i)..." - node db/init.js && - exec node app.js --prod "$@" && - break || s=$?; - echo "Failed (attempt $i). Waiting 5 seconds before the next attempt..."; - sleep 5; -done - -exit $s +node db/init.js +exec node app.js --prod $@