updated
This commit is contained in:
parent
3ca01197d9
commit
d9251a01af
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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user