remove credstash

This commit is contained in:
Leo Hemsted
2017-07-25 14:45:59 +01:00
parent 8c7127da3b
commit 7db1bfbb77
5 changed files with 3 additions and 26 deletions

8
db.py
View File

@@ -1,12 +1,8 @@
from flask.ext.script import Manager, Server
from flask_migrate import Migrate, MigrateCommand
from app import create_app, db
from credstash import getAllSecrets
import os
# On AWS get secrets and export to env, skip this on Cloud Foundry
if os.getenv('VCAP_SERVICES') is None:
os.environ.update(getAllSecrets(region="eu-west-1"))
from app import create_app, db
application = create_app()