mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 19:33:02 +03:00
Avoided config.local.json
loading in testing-browser
environment
- this should be checking if we're in any of the testing envionments and avoid loading the `config.local.json` file if so
This commit is contained in:
parent
e323d6162c
commit
464504a8e1
@ -30,7 +30,7 @@ function loadNconf(options) {
|
||||
|
||||
// Now load various config json files
|
||||
nconf.file('custom-env', path.join(customConfigPath, 'config.' + env + '.json'));
|
||||
if (env !== 'testing') {
|
||||
if (!env.startsWith('testing')) {
|
||||
nconf.file('local-env', path.join(customConfigPath, 'config.local.json'));
|
||||
}
|
||||
nconf.file('default-env', path.join(baseConfigPath, 'env', 'config.' + env + '.json'));
|
||||
|
Loading…
Reference in New Issue
Block a user