It's a convention for PaaS services to provide a PORT environment variable to bind to on their platform. This checks for that and then falls back to a default of 3000. This makes this project easier to run on Heroku and other platforms, but should not affect anyone running it locally.
It's a convention for PaaS services to provide a
PORT
environment variable to bind to on their platform. This checks for that and then falls back to a default of 3000. This makes this project easier to run on Heroku and other platforms, but should not affect anyone running it locally.