Allow settings to use ENV variable names

This commit is contained in:
MagicalCodeMonkey 2020-03-24 12:47:36 -04:00
parent 0fea8dcb24
commit 2dfe918e4e
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ module.exports = function () {
// console.log(`Args: '${args[setting.env]}'; '${args[setting.local]}'`);
// console.log(`ENV: '${process.env[setting.env]}'; '${process.env[setting.local]}'`);
// console.log(`Settings: '${settings[setting.local]}'; '${setting.default}'`);
output[setting.local] = args[setting.env] || args[setting.local] || process.env[setting.env] || process.env[setting.local] || settings[setting.local] || setting.default;
output[setting.local] = args[setting.env] || args[setting.local] || process.env[setting.env] || process.env[setting.local] || settings[setting.env] || settings[setting.local] || setting.default;
// Remove trailing slashes, if they exist
if ((setting.local == 'webroot' || setting.local == 'accessUrl') && output[setting.local].endsWith("/")) {