mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 07:35:34 -05:00
Moved import until after env setup
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
from app import notify_celery, create_app
|
||||
from credstash import getAllSecrets
|
||||
import os
|
||||
from config import configs
|
||||
|
||||
default_env_file = '/home/ubuntu/environment'
|
||||
environment = 'live'
|
||||
@@ -14,6 +13,8 @@ if os.path.isfile(default_env_file):
|
||||
# on aws get secrets and export to env
|
||||
os.environ.update(getAllSecrets(region="eu-west-1"))
|
||||
|
||||
from config import configs
|
||||
|
||||
os.environ['NOTIFY_API_ENVIRONMENT'] = configs[environment]
|
||||
|
||||
application = create_app()
|
||||
|
||||
Reference in New Issue
Block a user