FIX: Port is not correctly read

Missing brackets in server.js (L15) was causing the port to not be read from ENV varaiable PORT correctly, effectively breaking deployment builds. Bloody JavaScript...
This commit is contained in:
Alicia Sykes 2021-06-11 20:42:32 +01:00
parent a9018f137a
commit 28650b7e6d
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ require('./src/utils/ConfigValidator');
const isDocker = !!process.env.IS_DOCKER;
/* Checks env var for port. If undefined, will use Port 80 for Docker, or 4000 for metal */
const port = process.env.PORT || isDocker ? 80 : 4000;
const port = process.env.PORT || (isDocker ? 80 : 4000);
const getLocalIp = () => {
const dnsLookup = util.promisify(dns.lookup);