From 55974bb55d3d5126776043b984ad68a896a7ce22 Mon Sep 17 00:00:00 2001 From: TheOrangeOne Date: Fri, 26 Aug 2016 12:37:36 +0100 Subject: [PATCH] optionally get port from env --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 0edfe8f..2a728cc 100644 --- a/server.js +++ b/server.js @@ -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');