diff options
Diffstat (limited to 'lib/config')
-rw-r--r-- | lib/config/index.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/config/index.js b/lib/config/index.js index 26f0ae96..76c8bbf1 100644 --- a/lib/config/index.js +++ b/lib/config/index.js @@ -23,7 +23,8 @@ const packageConfig = { minimumCompatibleVersion: '0.5.0' } -const configFilePath = path.join(appRootPath, 'config.json') +const configFilePath = path.resolve(appRootPath, process.env.CMD_CONFIG_FILE || +'config.json') const fileConfig = fs.existsSync(configFilePath) ? require(configFilePath)[env] : undefined let config = require('./default') |