renaming Config*.js to envar-base-*.js
This commit is contained in:
parent
85e6a67b04
commit
01e025c479
@ -39,11 +39,11 @@ const wo = (global.wo = {
|
||||
// 读取配置文件
|
||||
try {
|
||||
let configFile
|
||||
if (fs.existsSync(configFile=path.join(process.cwd(), 'ConfigDeploy.js'))) {
|
||||
if (fs.existsSync(configFile=path.join(process.cwd(), 'envar-base-deploy.js'))) {
|
||||
wo.envar = deepmerge(wo.envar, require(configFile))
|
||||
console.info(`${configFile} loaded`)
|
||||
}
|
||||
if (fs.existsSync(configFile=path.join(process.cwd(), 'ConfigSecret.js'))) {
|
||||
if (fs.existsSync(configFile=path.join(process.cwd(), 'envar-base-secret.js'))) {
|
||||
wo.envar = deepmerge(wo.envar, require(configFile))
|
||||
console.info(`${configFile} loaded`)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user