aboutsummaryrefslogtreecommitdiff
path: root/boot.sh
diff options
context:
space:
mode:
Diffstat (limited to 'boot.sh')
-rw-r--r--boot.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/boot.sh b/boot.sh
index 9f6a220..7662566 100644
--- a/boot.sh
+++ b/boot.sh
@@ -4,7 +4,13 @@
poetry shell
# Run database migrations
-flask db upgrade
-
+while true; do
+ flask db upgrade
+ if [[ "$?" == "0" ]]; then
+ break;
+ fi
+ echo "Upgrade command failed, retrying in 5 seconds ..."
+ sleep 5
+done
exec gunicorn -b :80 --access-logfile - --error-logfile - annotate_change:app