Files
notifications-api/wsgi.py

18 lines
414 B
Python
Raw Normal View History

2015-12-15 16:37:54 +00:00
from app import create_app
from credstash import getAllSecrets
import os
config = 'live'
default_env_file = '/home/ubuntu/environment'
if os.path.isfile(default_env_file):
environment = open(default_env_file, 'r')
config = environment.readline().strip()
2015-12-15 16:37:54 +00:00
secrets = getAllSecrets(region="eu-west-1")
application = create_app(config, secrets)
2015-12-15 16:37:54 +00:00
if __name__ == "__main__":
application.run()