From 4f996d8b930269f79c484caa0675e873fd268249 Mon Sep 17 00:00:00 2001 From: Lloyd Hilaiel <lloyd@hilaiel.com> Date: Thu, 2 Feb 2012 17:38:18 -0700 Subject: [PATCH] show config shows local config if nothing else is specified --- scripts/show_config.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/show_config.js b/scripts/show_config.js index db4073ad7..857e511dd 100755 --- a/scripts/show_config.js +++ b/scripts/show_config.js @@ -1,3 +1,9 @@ #!/usr/bin/env node +var path = require('path'); + +// use the 'local' configuration if one isn't explicitly specified in the environment +process.env['CONFIG_FILES'] = process.env['CONFIG_FILES'] || + path.join(__dirname, '..', 'config', 'local.json'); + console.log(require("../lib/configuration.js").toString()); -- GitLab