archive
/
tstatic
Archived
1
Fork 0

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
1 changed files with 1 additions and 1 deletions

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');