Skip to content

Commit e51774d

Browse files
author
Rafael Alfaro
committed
adds comments
1 parent ee8002a commit e51774d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

build-server.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
const nodeStatic = require('node-static');
22
const file = new nodeStatic.Server('./build');
3+
//Heroku uses random port and forwards to port 80 automatically
4+
//port 3000 is for running locally
35
const port = process.env.PORT || 3000;
46
console.log('\nListening on port: ' + port);
57
require('http').createServer(function(request, response) {

0 commit comments

Comments
 (0)