app.listen(process.env.PORT, function () {
console.log(`Server is running on port ${port}`)
})
In my case, process.env.PORT was not defined and ${port} was. Therefore I was having the impression that the server was running on the port displayed into the console.
It would be great if a check was done on the port parameter. Is there a specific reason why it's not?
Thanks,
Paul