We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee8002a commit e51774dCopy full SHA for e51774d
1 file changed
build-server.js
@@ -1,5 +1,7 @@
1
const nodeStatic = require('node-static');
2
const file = new nodeStatic.Server('./build');
3
+//Heroku uses random port and forwards to port 80 automatically
4
+//port 3000 is for running locally
5
const port = process.env.PORT || 3000;
6
console.log('\nListening on port: ' + port);
7
require('http').createServer(function(request, response) {
0 commit comments