Search code examples
pythonheroku

problems Deploying my python app to heroku


I have recently been trying to deploy my application to Heroku. I was following the documentation and everything but I'm getting this error now.

2020-03-12T21:46:36.154267+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=semsar-flask.herokuapp.com request_id=8c7e6604-97a5-4f5c-ae62-6c2edb73a4bb fwd="217.164.64.29" dyno= connect= service= status=503 bytes= protocol=https

This is my Procfile:

web: gunicorn wsgi: app

Wsgi.py:

from wbp import app

Did I make a mistake filling in those two files or what? Please do explain since I'm relatively new to this.


Solution

  • An H10 error could mean many possibilities and answering all solutions here would be tedious. You should also read here and see if any of those are helpful.

    Also try to avoid empty spaces in Procfile. So try changing from this

    web: gunicorn wsgi: app
    

    To this

    web:gunicorn wsgi:app
    

    and see if it works.