Revert "remove credstash"

This reverts commit 7db1bfbb77.
This commit is contained in:
Athanasios Voutsadakis
2017-07-28 16:09:49 +01:00
parent 6c007fb27d
commit de41fde0d3
5 changed files with 26 additions and 3 deletions

6
db.py
View File

@@ -1,8 +1,12 @@
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"))
application = create_app()