Reverse PORT logic

This commit is contained in:
MagicalCodeMonkey 2020-03-24 13:41:28 -04:00
parent 8a9150af6b
commit 8dacfb5619
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}