diff --git a/server.js b/server.js index 5b7619f..0db9923 100644 --- a/server.js +++ b/server.js @@ -53,7 +53,8 @@ app.use(function(err, req, res, next) { } }) -app.listen(process.env.PORT, function () { - console.log('Node.js listening ...'); +//Listen on port set in environment variable or default to 3000 +const listener = app.listen(process.env.PORT || 3000, function () { + console.log("Node.js listening on port " + listener.address().port); });