Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
masukomi
· 14y ago · 0 comments
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?
Comments
[–]
bogdanL
14y ago
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.
[–]
Loic
14y ago
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.