From 8370aa51a82050dff9691d5609ebeb9155c16280 Mon Sep 17 00:00:00 2001 From: Sebastian Gierlinger Date: Mon, 10 Oct 2016 11:43:17 +0200 Subject: [PATCH] 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. --- core/server/config/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/server/config/index.js b/core/server/config/index.js index 37a45b8cd2..5f5488b27c 100644 --- a/core/server/config/index.js +++ b/core/server/config/index.js @@ -12,7 +12,9 @@ nconf.argv(); /** * env arguments */ -nconf.env(); +nconf.env({ + separator: '__' +}); /** * load config files