feat: CONFIG_FILE env param

This commit is contained in:
Nick 2019-09-22 16:43:47 -04:00
parent d0dc300a59
commit 1a7ace5107

View File

@ -22,6 +22,10 @@ module.exports = {
confPaths.config = path.join(WIKI.ROOTPATH, `dev/docker-${process.env.DEVDB}/config.yml`)
}
if (process.env.CONFIG_FILE) {
confPaths.config = path.resolve(WIKI.ROOTPATH, process.env.CONFIG_FILE)
}
process.stdout.write(chalk.blue(`Loading configuration from ${confPaths.config}... `))
let appconfig = {}