From e51774df13fe9e89126c2b92cfcdd33c2d7f3a5f Mon Sep 17 00:00:00 2001 From: Rafael Alfaro Date: Tue, 17 Jul 2018 16:58:32 -0600 Subject: [PATCH] adds comments --- build-server.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build-server.js b/build-server.js index 52e56ff..568c993 100644 --- a/build-server.js +++ b/build-server.js @@ -1,5 +1,7 @@ const nodeStatic = require('node-static'); const file = new nodeStatic.Server('./build'); +//Heroku uses random port and forwards to port 80 automatically +//port 3000 is for running locally const port = process.env.PORT || 3000; console.log('\nListening on port: ' + port); require('http').createServer(function(request, response) {