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.
12 lines
295 B
Bash
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 |