Skip to content

Commit

Permalink
env port
Browse files Browse the repository at this point in the history
  • Loading branch information
bkendall committed Aug 7, 2014
1 parent 4a73be9 commit 50ef4b3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
var http = require('http');
var port = process.env.PORT || 8080;
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello, FON\n');
}).listen(80);
console.log('Server running at http://127.0.0.1:80/');
}).listen(port);
console.log('Server running at http://127.0.0.1:' + port + '/');

0 comments on commit 50ef4b3

Please sign in to comment.