rename start.sh to docker-entrypoint.sh and rollback start.sh
parent
55c618af06
commit
36c03cc0f6
@ -0,0 +1,13 @@
|
||||
#!/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
|
||||
Loading…
Reference in New Issue