mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-08 02:52:39 -05:00
Added support for local config file
- Because we want devExperiments enabled when checking out from source, we have a committed config.development.json - It works, but is a PITA if you want to have some local settings, as they have to be stashed (or get accidentally committed) - This commit adds `config.local.json` as a local file that anyone can specify in any env, and it will be loaded - Note that config.[specific env].json will trump it / overwrite it - But you can still have settings alongside!
This commit is contained in:
parent
0fe0e09d62
commit
c902c71fbd
1 changed files with 1 additions and 0 deletions
|
@ -33,6 +33,7 @@ _private.loadNconf = function loadNconf(options) {
|
|||
});
|
||||
|
||||
nconf.file('custom-env', path.join(customConfigPath, 'config.' + env + '.json'));
|
||||
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…
Add table
Reference in a new issue