Skip to content

Commit

Permalink
Herok support! Procfile + PORT env var.
Browse files Browse the repository at this point in the history
  • Loading branch information
aseemk committed Feb 28, 2012
1 parent c762837 commit 6672706
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: node app.js
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ app.configure('production', function(){

app.get('/', routes.index);

app.listen(3000);
app.listen(process.env.PORT || 3000);
console.log("Express server listening on port %d in %s mode", app.address().port, app.settings.env);

0 comments on commit 6672706

Please sign in to comment.