mirror of
https://github.com/Lissy93/dashy.git
synced 2024-09-11 14:17:02 +03:00
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:
parent
a9018f137a
commit
28650b7e6d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user