mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 04:53:11 -04:00
If there is a FLASK_CONFIG set then use file at that location
This commit is contained in:
@@ -27,7 +27,7 @@ def create_app(config_name):
|
|||||||
|
|
||||||
application.config['NOTIFY_API_ENVIRONMENT'] = config_name
|
application.config['NOTIFY_API_ENVIRONMENT'] = config_name
|
||||||
application.config.from_object(configs[config_name])
|
application.config.from_object(configs[config_name])
|
||||||
if config_name is not 'development':
|
if config_name is not 'development' or 'test':
|
||||||
application.config.from_envvar('FLASK_CONFIG')
|
application.config.from_envvar('FLASK_CONFIG')
|
||||||
db.init_app(application)
|
db.init_app(application)
|
||||||
init_app(application)
|
init_app(application)
|
||||||
|
|||||||
Reference in New Issue
Block a user