mirror of
https://github.com/plankanban/planka.git
synced 2025-08-10 07:55:27 +02:00
.
This commit is contained in:
parent
36c03cc0f6
commit
7c55e25d97
1 changed files with 2 additions and 11 deletions
13
start.sh
13
start.sh
|
@ -1,13 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
node db/init.js
|
||||||
for i in $(seq 1 30); do
|
exec node app.js --prod $@
|
||||||
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…
Add table
Add a link
Reference in a new issue