CostHive/boot.sh
Lunaresk 597725f46c minor: revert dockerfile and boot.sh
Minor improvements, bugfixes and first experiments with angular.
2023-04-16 16:27:46 +02:00

17 lines
398 B
Bash

#!/bin/bash
source venv/bin/activate
cd backend
for i in {0..5}
do
flask db upgrade 2be4d1ae5493-1
if [[ "$?" == "0" ]]; then
break
elif [ "$i" -eq 5 ]; then
echo Deployment failed, exiting...
exit 1
fi
echo Deploy command failed, retrying in 5 secs...
sleep 5
done
flask db upgrade
exec gunicorn -b :5000 --access-logfile - --error-logfile - run:app