Merge pull request #96 from Ferrari/heroku-deploy-error

fix port binding error when deploy to heroku
This commit is contained in:
Amos Haviv
2013-10-23 00:35:51 -07:00

View File

@@ -50,7 +50,7 @@ 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);
@@ -58,4 +58,4 @@ console.log('Express app started on port ' + port);
logger.init(app, passport, mongoose);
//expose app
exports = module.exports = app;
exports = module.exports = app;