Skip to content

Commit

Permalink
adds comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael Alfaro committed Jul 17, 2018
1 parent ee8002a commit e51774d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build-server.js
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down

0 comments on commit e51774d

Please sign in to comment.