mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-03-05 19:51:08 +01:00
Merge pull request #96 from Ferrari/heroku-deploy-error
fix port binding error when deploy to heroku
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user