Removed unused db script

This commit is contained in:
Martyn Inglis
2016-01-11 13:44:00 +00:00
parent 22adf6481f
commit ee034723b7
2 changed files with 1 additions and 13 deletions

12
db.py
View File

@@ -1,12 +0,0 @@
from flask.ext.script import Manager, Server
from flask_migrate import Migrate, MigrateCommand
from app import create_app, db
from credstash import getAllSecrets
secrets = getAllSecrets(region="eu-west-1")
application = create_app('live', secrets)
manager = Manager(application)
migrate = Migrate(application, db)
manager.add_command('db', MigrateCommand)

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 db.py db upgrade
python3 app.py db upgrade