From a1b3e6d0c2d16a77786b25dfe68bd1e9685ac2b6 Mon Sep 17 00:00:00 2001 From: Fabien LOISON Date: Tue, 27 Oct 2015 10:09:03 +0100 Subject: [PATCH] Allows to define the path of the configuration file through an environment variable --- lib/cli.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/cli.js b/lib/cli.js index e78926de..00678702 100644 --- a/lib/cli.js +++ b/lib/cli.js @@ -50,6 +50,8 @@ var config, config_path try { if (commander.config) { config_path = Path.resolve(commander.config) + } else if (process.env.SINOPIA_CONFIG) { + config_path = Path.resolve(process.env.SINOPIA_CONFIG) } else { config_path = require('./config-path')() }