I am creating a node.js application and experimenting with hosting it on Heroku. It looks like to make my application accessible to the whole world, I need to listen like this:
app.listen(process.env.PORT || 3000);
I want the application to listen on port 8080. Is this possible in Heroku? Can I change the value of process.env.port? It seems to be some kind of reverse proxy that I could not control.
source share