CostHive/boot.sh
Lunaresk 6cf5a91c8c major: refactoring and creating api structure
Moved the token-based functions in the new API folder and started
commenting them. Changed the database_utils function to deal with the
new format commented in api/routes.py.
Minor adjustments in boot.sh function.
2022-08-24 13:30:48 +02:00

12 lines
295 B
Bash

#!/bin/bash
source venv/bin/activate
while true; do
flask db upgrade 2be4d1ae5493-1
if [[ "$?" == "0" ]]; then
break
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