Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

set port for heroku

  • Loading branch information...
commit e1b24d8c980e7269bd1e2ebef4a5c676f6aceb36 1 parent 8e2a2d8
Lincoln Stoll authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  app.js
3  app.js
View
@@ -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);
});
Please sign in to comment.
Something went wrong with that request. Please try again.