4 ms·
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 Hero
by bogdanL 15y 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 15y agoMaybe 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.