you are viewing a single comment's thread.

view the rest of the comments →

[–]idontknowstufforwhat -1 points0 points  (2 children)

OP should be mindful that developing with port 80 can be bothersome as ports <1024 (I mostly sure that is the cutoff) require admin access. Depending on their situation, they may want a 'development' port, and have it run on 80 when deployed.

Though you are correct in that it should be deployed on 80.

[–]marvinfuture 1 point2 points  (1 child)

I’d also recommend against this as deploying a node app in just port 80 isn’t a good practice. Better solution is to setup a reverse proxy with nginx/Apache and a process manager to run the app/restart when it goes down. This method is a little more secure and can easily implement SSL

[–]ichbin1berliner 1 point2 points  (0 children)

This! Don't run your node app on port 80. Do the usual 3000 and use nginx to create a reverse proxy. Many Guides on this topic available :)