Heroku Application error(R10) - R10 - Error R10 (Boot timeout) -> Web process failed to bin d to $PORT within 60 seconds of launch

I am running:
git push heroku master
heroku open

My Procfile:

release: python manage.py migrate

web: waitress-serve --listen=localhost:8000 storefront.wsgi:application

My Log:

2023-02-20T05:47:22.531135+00:00 heroku[web.1]: State changed from crashed to starting
2023-02-20T05:47:41.700316+00:00 heroku[web.1]: Starting process with command `waitress-serve --liste
n=localhost:8000 storefront.wsgi:application`
2023-02-20T05:47:44.005026+00:00 app[web.1]: Serving on http://127.0.0.1:8000
2023-02-20T05:48:05.000000+00:00 app[heroku-redis]: source=REDIS addon=redis-acute-18444 sample#activ
e-connections=1 sample#load-avg-1m=0.195 sample#load-avg-5m=0.355 sample#load-avg-15m=0.4 sample#read
-iops=0 sample#write-iops=0 sample#memory-total=16084924kB sample#memory-free=9997524kB sample#memory
-cached=3236532kB sample#memory-redis=335784bytes sample#hit-rate=1 sample#evicted-keys=0
2023-02-20T05:48:42.244149+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bin
d to $PORT within 60 seconds of launch
2023-02-20T05:48:42.327725+00:00 heroku[web.1]: Stopping process with SIGKILL
2023-02-20T05:48:42.567303+00:00 heroku[web.1]: Process exited with status 137
2023-02-20T05:48:42.623286+00:00 heroku[web.1]: State changed from starting to crashed
2023-02-20T05:48:57.777654+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path
="/" host=vin-prod.herokuapp.com request_id=d46cea93-368f-4c0a-855f-7e482bc4e826 fwd="174.82.25.34" d
yno= connect= service= status=503 bytes= protocol=https
2023-02-20T05:48:58.128022+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path
="/favicon.ico" host=vin-prod.herokuapp.com request_id=8cbbf38a-b258-4ae0-8aef-9d451c099b33 fwd="174.
82.25.34" dyno= connect= service= status=503 bytes= protocol=https


I am running my code on windows(VS code). I tried running heroku ps:scale web=1. 

It works fine : Scaling dynos... done, now running web at 1:Basic

In my heroku dynos are set to my waitress-serve.


Please help me out

I resolved this by adding web: waitress-serve --port=$PORT storefront.wsgi:application

I deployed my app using waitress instead of gunicorn finally.

1 Like