error: "failed to bind to $PORT within 60 seconds of launch - deploying with Heroku - port #3777
-
First time deploying a Fastify app. This is what I'm getting atheroku's console:
At my package.json I got: What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
You need to see the host to listen to 0.0.0.0. |
Beta Was this translation helpful? Give feedback.
-
Just spent several hours on this coz I did not read the docs at the first place)) if you are developing an app which does not need UI, then use worker instead of web on Procfile. In the procfile, instead of using: after you push everything to heroku git, make sure to: |
Beta Was this translation helpful? Give feedback.
You need to see the host to listen to 0.0.0.0.