From 1a7ace5107a4c82338bce1051ecc9d453d07d58e Mon Sep 17 00:00:00 2001 From: Nick Date: Sun, 22 Sep 2019 16:43:47 -0400 Subject: [PATCH] feat: CONFIG_FILE env param --- server/core/config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/core/config.js b/server/core/config.js index d1bcdf64..dd95be52 100644 --- a/server/core/config.js +++ b/server/core/config.js @@ -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 = {}