updated
This commit is contained in:
2
envar.js
2
envar.js
@@ -72,7 +72,7 @@ module.exports = {
|
||||
|
||||
/* 读取动态配置文件中的环境变量。
|
||||
*/
|
||||
get_dynamic_envar ({ dynamicEnvarFile = 'envar-base-dynamic.js' } = {}) {
|
||||
get_dynamic_envar ({ dynamicEnvarFile = './envar-base-dynamic.js' } = {}) {
|
||||
// dynamicEnvarFile should be absolute or relative to the node process's dir.
|
||||
const fullpath = path.resolve(dynamicEnvarFile)
|
||||
if (fs.existsSync(fullpath)) {
|
||||
|
||||
Reference in New Issue
Block a user