Permalink
Browse files

set port for heroku

  • Loading branch information...
1 parent 8e2a2d8 commit e1b24d8c980e7269bd1e2ebef4a5c676f6aceb36 @lstoll committed Mar 6, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 app.js
View
3 app.js
@@ -42,7 +42,8 @@ app.get('/', function (req, res) {
* App listen.
*/
-app.listen(3000, function () {
+var port = process.env.PORT || 3000;
+app.listen(port, function () {
var addr = app.address();
console.log(' app listening on http://' + addr.address + ':' + addr.port);
});

0 comments on commit e1b24d8

Please sign in to comment.