mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Updated new local config to not affect tests
- if you have local config, e.g. a subdirectory in your URL, this would affect the tests - tests should always only use test config
This commit is contained in:
parent
1c0db1dc87
commit
f10b4394dc
1 changed files with 3 additions and 1 deletions
|
@ -33,7 +33,9 @@ _private.loadNconf = function loadNconf(options) {
|
|||
});
|
||||
|
||||
nconf.file('custom-env', path.join(customConfigPath, 'config.' + env + '.json'));
|
||||
if (env !== 'testing') {
|
||||
nconf.file('local-env', path.join(customConfigPath, 'config.local.json'));
|
||||
}
|
||||
nconf.file('default-env', path.join(baseConfigPath, 'env', 'config.' + env + '.json'));
|
||||
nconf.file('defaults', path.join(baseConfigPath, 'defaults.json'));
|
||||
|
||||
|
|
Loading…
Reference in a new issue