Skip to content

Commit

Permalink
Merge pull request #96 from Ferrari/heroku-deploy-error
Browse files Browse the repository at this point in the history
fix port binding error when deploy to heroku
  • Loading branch information
amoshaviv committed Oct 23, 2013
2 parents 293fe61 + eb96242 commit ded16ef
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 ded16ef

Please sign in to comment.