1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-08-09 07:25:24 +02:00

Update start.sh

This commit is contained in:
NavyStack 2023-12-19 09:31:22 +09:00 committed by GitHub
parent 7b6becb0b8
commit c0405157e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 $@