ezekielchentnik / preact-pwa

Super fast progressive web app with small footprint & minimal dependancies
https://preact-pwa-yfxiijbzit.now.sh/
MIT License
513 stars 37 forks source link

Bind to PORT env variable if present #13

Closed jmorrell closed 7 years ago

jmorrell commented 7 years ago

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.