Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

does anyone know if an alternate port has to be specified with this? Is there a reason it can't just be run on 80?


The example gives port 3000 as an example for running it on your localhost. Otherwise you need super-user permissions to start a server on port 80.

But on Heroku's Cedar stack, it will run on port 80.


Maybe 80, maybe not, it will run on port $PORT which is provided at runtime by Heroku. Practically you do not need to worry about it, Heroku will take care to route the request from port 80 on the outside to port $PORT at the dyno level.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: