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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user