Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

making heroku-happy

  • Loading branch information...
commit 4c5e47467256fe9306f42b64dc24f7bbf8ce6b91 1 parent 45f1250
@dontcallmedom authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 app.js
View
4 app.js
@@ -10,7 +10,7 @@ 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}));
});
@@ -18,7 +18,7 @@ app.configure(function(){
// 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);
});
Please sign in to comment.
Something went wrong with that request. Please try again.