feat: CONFIG_FILE env param

pull/1066/head
Nick 5 years ago
parent d0dc300a59
commit 1a7ace5107

@ -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 = {}

Loading…
Cancel
Save