mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 10:53:28 -05:00
Start aligning Admin app with config styles used elsewhere
- no config overrides - now all set in environment - use different files for staging and live too allow for differently named env variables - updates to run_app and run_tests scripts to set correct environment (test/development) so correct config picked up - use environment file on deployed environments to pick correct config
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
export NOTIFY_ADMIN_ENVIRONMENT='config.Development'
|
||||
python3 app.py runserver
|
||||
|
||||
@@ -32,5 +32,6 @@ display_result $? 2 "Front end code style check"
|
||||
#py.test --cov=app tests/
|
||||
#display_result $? 3 "Code coverage"
|
||||
|
||||
export NOTIFY_ADMIN_ENVIRONMENT='config.Test'
|
||||
py.test -v
|
||||
display_result $? 4 "Unit tests"
|
||||
|
||||
Reference in New Issue
Block a user