optionally get port from env
This commit is contained in:
parent
9279aa0767
commit
55974bb55d
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
|
||||
|
|
Reference in a new issue