Ensured credstash is located only with the wsgi/gunicorn code.

This commit is contained in:
Martyn Inglis
2016-01-11 09:59:31 +00:00
parent 42b62ce7cd
commit 7efa513777
3 changed files with 14 additions and 11 deletions

5
db.py
View File

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