Files
notifications-api/wsgi.py

15 lines
317 B
Python
Raw Normal View History

import os
from app import create_app
from credstash import getAllSecrets
2016-12-08 12:12:45 +00:00
# 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"))
2016-03-17 13:21:01 +00:00
application = create_app()
2015-12-15 16:37:54 +00:00
if __name__ == "__main__":
application.run()