0
Fork 0
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:
Sebastian Gierlinger 2016-10-10 11:43:17 +02:00 committed by Katharina Irrgang
parent 01f5dc238f
commit 8370aa51a8

View file

@ -12,7 +12,9 @@ nconf.argv();
/**
* env arguments
*/
nconf.env();
nconf.env({
separator: '__'
});
/**
* load config files