feat: CONFIG_FILE env param
This commit is contained in:
parent
d0dc300a59
commit
1a7ace5107
@ -22,6 +22,10 @@ module.exports = {
|
|||||||
confPaths.config = path.join(WIKI.ROOTPATH, `dev/docker-${process.env.DEVDB}/config.yml`)
|
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}... `))
|
process.stdout.write(chalk.blue(`Loading configuration from ${confPaths.config}... `))
|
||||||
|
|
||||||
let appconfig = {}
|
let appconfig = {}
|
||||||
|
Loading…
Reference in New Issue
Block a user