I have done a search on StackOverflow looking for an answer that will help me to get my Web API working, but somehow, I still don\'t have the answer that I need. I have foll
Looks like the Heroku load balancer cannot reach your application because it listens on localhost only (IP address 127.0.0.1
). Moreover, Heroku allocates port numbers dynamically and assigns the current value to the PORT
environment variable.
Try the following Procfile instead:
web: gunicorn --bind 0.0.0.0:$PORT main-api:app