App Crash Error On Trying To Deploy Small Application To Heroku
I'm getting this error on deploying to heroku: at=error code=H10 desc='App crashed' method=GET path='/' host=deploy-testv1.herokuapp.com request_id=b36172ff-cb1b-4436-978f-1be34e2
Solution 1:
In app.py, this small change. Instead of just from HelloApiHandler, I changed it to api.HelloApiHandler. Apparently, while deploying on Heroku, we have to keep the Procfile as the reference even for Python files. It doesn't matter that the app.py file and HelloApiHandler.py file are in the same directory.
from api.HelloApiHandlerimportHelloApiHandlerAnd in Procfile. The same above reason
web: gunicorn api.app:appThis deployed my application.
Post a Comment for "App Crash Error On Trying To Deploy Small Application To Heroku"