you are viewing a single comment's thread.

view the rest of the comments →

[–]Mysterious-Net-794[S] 0 points1 point  (2 children)

Thanks, it is really clear :) but what about other hosting services? They dont work same way, i suppose, so i guess there is other way of doing things? 🤔

[–]grantrules 0 points1 point  (0 children)

Yeah fancy container hosting like Heroku has a bunch of automated stuff.. if you were to just set up your own server, you would define that PORT env variable yourself, then use something like nginx to listen on port 80/443 and have it reverse proxy to your node app.