CostHive/boot.sh
Lunaresk 4459000d4f docker image and changes in models
Made some convenience changes in models and created a Dockerfile for
deployment.
Also changed the configs to be compatible for custom variables in Docker
2022-07-21 11:55:46 +02:00

13 lines
323 B
Bash

#!/bin/bash
source venv/bin/activate
while true; do
flask db upgrade 05fce74b56cb
if [[ "$?" == "0" ]]; then
break
fi
echo Deploy command failed, retrying in 5 secs...
sleep 5
done
flask db upgrade 2be4d1ae5493
flask db upgrade
exec gunicorn -b :5000 --access-logfile - --error-logfile - run:app