diff --git a/ghost/core/core/shared/config/loader.js b/ghost/core/core/shared/config/loader.js index 3e8e6d0247..2ad1ad0861 100644 --- a/ghost/core/core/shared/config/loader.js +++ b/ghost/core/core/shared/config/loader.js @@ -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'));