Needed own file for db scripts. Need to compartmentalise running the app and the db upgrades into differing scripts.

This commit is contained in:
Martyn Inglis
2016-01-10 22:16:26 +00:00
parent 60f6601845
commit 63c87f10e7
2 changed files with 20 additions and 1 deletions

View File

@@ -4,4 +4,4 @@ echo "Install dependencies"
cd /home/ubuntu/notifications-admin;
export FLASK_CONFIG=/home/ubuntu/config.cfg
pip3 install -r /home/ubuntu/notifications-admin/requirements.txt
python3 wsgi.py db upgrade
python3 db.py db upgrade