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:
Martyn Inglis
2016-03-17 13:45:59 +00:00
parent 85348c05b3
commit 2473b09beb
8 changed files with 55 additions and 36 deletions

View File

@@ -1,3 +1,4 @@
#!/bin/bash
export NOTIFY_ADMIN_ENVIRONMENT='config.Development'
python3 app.py runserver

View File

@@ -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"