mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 10:53:28 -05:00
15 lines
375 B
Python
15 lines
375 B
Python
from app import create_app
|
|
import os
|
|
from credstash import getAllSecrets
|
|
|
|
secrets = getAllSecrets(region="eu-west-1")
|
|
|
|
application = create_app(os.getenv('NOTIFICATIONS_ADMIN_ENVIRONMENT') or 'live')
|
|
|
|
for key in application.config.keys():
|
|
if key in secrets:
|
|
application.config[key] = secrets[key]
|
|
|
|
if __name__ == "__main__":
|
|
application.run()
|