optionally get port from env

This commit is contained in:
Jake Howard 2016-08-26 12:37:36 +01:00
parent 9279aa0767
commit 55974bb55d
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -3,7 +3,7 @@ const staticFile = require('connect-static-file');
const compression = require('compression');
const path = require('path');
const PORT = 5000;
const PORT = process.env.PORT || 5000;
const SERVE_DIR = path.join(__dirname, '/site');
const PAGE_404 = path.join(SERVE_DIR, '.404.html');