mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
nconf separator (#7518)
refs #7488 If you want to set properties for our configuration values using environment variables on the command line, Linux and MacOS return an invalid identifier error. ``` $ export database:connection:host=127.0.0.1 -bash: export: `database:connection:host=127.0.0.1': not a valid identifier ``` According to the nconf documentation a custom separator can be set. The docs suggest `'__'` which this PR adds.
This commit is contained in:
parent
01f5dc238f
commit
8370aa51a8
1 changed files with 3 additions and 1 deletions
|
@ -12,7 +12,9 @@ nconf.argv();
|
|||
/**
|
||||
* env arguments
|
||||
*/
|
||||
nconf.env();
|
||||
nconf.env({
|
||||
separator: '__'
|
||||
});
|
||||
|
||||
/**
|
||||
* load config files
|
||||
|
|
Loading…
Add table
Reference in a new issue