Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
fix port binding error when deploy to heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
siygle committed Oct 3, 2013
1 parent fe50b41 commit eb96242
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ require('./config/express')(app, passport);
require('./config/routes')(app, passport, auth);

//Start the app by listening on <port>
var port = config.port;
var port = process.env.PORT || config.port;
app.listen(port);
console.log('Express app started on port ' + port);

//Initializing logger
logger.init(app, passport, mongoose);

//expose app
exports = module.exports = app;
exports = module.exports = app;

0 comments on commit eb96242

Please sign in to comment.