Skip to content

Commit

Permalink
modified server.js process.env.PORT to debug heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
fmotaf committed Mar 9, 2021
1 parent 5bc1902 commit 3fae0f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ app.get("/api/hello", function (req, res) {
});

// listen for requests :)
var listener = app.listen(port, function () {
console.log('Your app is listening on port ' + listener.address().port);
});
var listener = app.listen(process.env.PORT || 5000 );
// console.log('Your app is listening on port ' + listener.address().port);
// });

0 comments on commit 3fae0f3

Please sign in to comment.