Permalink
Browse files

making heroku-happy

  • Loading branch information...
1 parent 45f1250 commit 4c5e47467256fe9306f42b64dc24f7bbf8ce6b91 @dontcallmedom committed Nov 18, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 app.js
View
4 app.js
@@ -10,15 +10,15 @@ var queueStart = 0;
app.configure(function(){
emitter.setMaxListeners(0);
app.use(express.logger());
- app.set('port', 3000);
+ app.set('port', process.env.PORT || 3000);
app.use(express.bodyParser());
app.use(express.static(__dirname + '/public', { maxAge: 86400}));
});
// Run on port 80 when in production mode
app.configure('production', function(){
app.use(express.errorHandler());
- app.set('port', 80);
+ app.set('port', process.env.PORT || 80);
});

0 comments on commit 4c5e474

Please sign in to comment.