From 2dfe918e4e7a7595ef579c0e7943c23d3ab603df Mon Sep 17 00:00:00 2001 From: MagicalCodeMonkey Date: Tue, 24 Mar 2020 12:47:36 -0400 Subject: [PATCH] Allow settings to use ENV variable names --- SettingsHelper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SettingsHelper.js b/SettingsHelper.js index eb36456c..6ee82f42 100644 --- a/SettingsHelper.js +++ b/SettingsHelper.js @@ -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("/")) {