mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 10:53:28 -05:00
upstart puts FLASK_CONFIG into env on AWS.
If present then read the config file pointed at by this property to do environment specific overrides
This commit is contained in:
@@ -27,7 +27,7 @@ def create_app(config_name):
|
||||
|
||||
application.config['NOTIFY_API_ENVIRONMENT'] = config_name
|
||||
application.config.from_object(configs[config_name])
|
||||
if 'DEPLOYMENT_GROUP_NAME' in os.environ:
|
||||
if 'FLASK_CONFIG' in os.environ:
|
||||
application.config.from_envvar('FLASK_CONFIG')
|
||||
db.init_app(application)
|
||||
init_app(application)
|
||||
|
||||
Reference in New Issue
Block a user