From 8dacfb561989ac3f7f9c895605a61278aeaa5eba Mon Sep 17 00:00:00 2001 From: MagicalCodeMonkey Date: Tue, 24 Mar 2020 13:41:28 -0400 Subject: [PATCH] Reverse PORT logic --- SettingsHelper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SettingsHelper.js b/SettingsHelper.js index 493fc9e0..2f130d18 100644 --- a/SettingsHelper.js +++ b/SettingsHelper.js @@ -82,7 +82,7 @@ module.exports = function () { // Backwards compatibilty for PORT ENV setting if(setting.local == 'webapp_port' && output[setting.local] == 8088) { let port = args['PORT'] || process.env['PORT'] || settings['PORT']; - if(!port || port !== 8088) { + if(port && port !== 8088) { console.log(`Please change 'PORT' to 'WEB_PORT'. Setting WEB_PORT to '${port}'`) output[setting.local] = port; }