Skip to content

Commit

Permalink
Update app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
germanattanasio committed Jan 14, 2017
1 parent b1b87a4 commit a483ad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Expand Up @@ -88,7 +88,7 @@ app.post('/api/token', function(req, res, next) {
// error-handler application settings
require('./config/error-handler')(app);

var port = process.env.VCAP_APP_PORT || 3000;
var port = process.env.PORT || process.env.VCAP_APP_PORT || 3000;
app.listen(port);
// eslint-disable-next-line
console.log('listening at:', port);

0 comments on commit a483ad4

Please sign in to comment.