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

@@ -72,18 +72,10 @@ class Preview(Config):
HEADER_COLOUR = '#F47738' # $orange
class Staging(Preview):
SHOW_STYLEGUIDE = False
class Live(Staging):
HEADER_COLOUR = '#B10E1E' # $red
configs = {
'development': Development,
'test': Test,
'preview': Preview,
'staging': Staging,
'live': Live
'development': 'config.Development',
'test': 'config.Test',
'preview': 'config.Preview',
'staging': 'config_staging.Staging',
'live': 'config_live.Live'
}