Skip to content

Commit

Permalink
print port
Browse files Browse the repository at this point in the history
  • Loading branch information
bkendall committed Aug 16, 2014
1 parent 50ef4b3 commit ecaf1df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ 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');
res.end('Hello, FON\n\nServed on port ' + port + '\n');
}).listen(port);
console.log('Server running at http://127.0.0.1:' + port + '/');

0 comments on commit ecaf1df

Please sign in to comment.