mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-26 17:24:23 -04:00
Order of imports means the config doesn't get set up properly
This commit is contained in:
3
wsgi.py
3
wsgi.py
@@ -1,4 +1,3 @@
|
|||||||
from app import create_app
|
|
||||||
from credstash import getAllSecrets
|
from credstash import getAllSecrets
|
||||||
import os
|
import os
|
||||||
|
|
||||||
@@ -17,6 +16,8 @@ from config import configs
|
|||||||
|
|
||||||
os.environ['NOTIFY_ADMIN_ENVIRONMENT'] = configs[environment]
|
os.environ['NOTIFY_ADMIN_ENVIRONMENT'] = configs[environment]
|
||||||
|
|
||||||
|
from app import create_app
|
||||||
|
|
||||||
application = create_app()
|
application = create_app()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Reference in New Issue
Block a user