Skip to content

Commit

Permalink
nconf separator (#7518)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sebgie authored and kirrg001 committed Oct 10, 2016
1 parent 01f5dc2 commit 8370aa5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/server/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ nconf.argv();
/**
* env arguments
*/
nconf.env();
nconf.env({
separator: '__'
});

/**
* load config files
Expand Down

0 comments on commit 8370aa5

Please sign in to comment.