✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🐇 Announcing Dash VTK for 3d simulation graphics. Check out the March webinar.

Dash app deployment error on Heroku | 1st deployment

Hello all - I am trying to deploy my 1st Dash app on Heroku and followed the guidelines. My application runs fine on local server but have deployment issue. I have set up requirement.txt, Procfile, .gitignore etc accordingly. I would appreciate if someone can provide guidance.

My error is following:

2020-04-24T06:26:39.085742+00:00 app[web.1]: [2020-04-24 06:26:39 +0000] [4] [INFO] Starting gunicorn 19.9.0
2020-04-24T06:26:39.086275+00:00 app[web.1]: [2020-04-24 06:26:39 +0000] [4] [INFO] Listening at: http://0.0.0.0:51944 (4)
2020-04-24T06:26:39.086371+00:00 app[web.1]: [2020-04-24 06:26:39 +0000] [4] [INFO] Using worker: sync
2020-04-24T06:26:39.090066+00:00 app[web.1]: [2020-04-24 06:26:39 +0000] [10] [INFO] Booting worker with pid: 10
2020-04-24T06:26:39.125514+00:00 app[web.1]: [2020-04-24 06:26:39 +0000] [11] [INFO] Booting worker with pid: 11
2020-04-24T06:26:46.000000+00:00 app[api]: Build succeeded
2020-04-24T06:26:52.897783+00:00 heroku[web.1]: State changed from up to crashed
2020-04-24T06:27:01.689027+00:00 heroku[router]: at=error code=H10 desc=“App crashed” method=GET path="/" host=vahan-calam.herokuapp.com request_id=ce55bd95-321c-485c-9116-9ded87db79de fwd=“122.167.75.211” dyno= connect= service= status=503 bytes= protocol=https
2020-04-24T06:27:02.230042+00:00 heroku[router]: at=error code=H10 desc=“App crashed” method=GET path="/favicon.ico" host=vahan-calam.herokuapp.com request_id=617be8ed-1ddd-4d6b-a4cd-6a77ca498d40 fwd=“122.167.75.211” dyno= connect= service= status=503 bytes= protocol=https

2020-04-24T06:29:29.537071+00:00 heroku[web.1]: State changed from crashed to starting
2020-04-24T06:29:41.413330+00:00 app[web.1]: [2020-04-24 06:29:41 +0000] [4] [INFO] Starting gunicorn 19.9.0
2020-04-24T06:29:41.414041+00:00 app[web.1]: [2020-04-24 06:29:41 +0000] [4] [INFO] Listening at: http://0.0.0.0:40460 (4)
2020-04-24T06:29:41.414151+00:00 app[web.1]: [2020-04-24 06:29:41 +0000] [4] [INFO] Using worker: sync
2020-04-24T06:29:41.418659+00:00 app[web.1]: [2020-04-24 06:29:41 +0000] [10] [INFO] Booting worker with pid: 10
2020-04-24T06:29:41.460124+00:00 app[web.1]: [2020-04-24 06:29:41 +0000] [11] [INFO] Booting worker with pid: 11
2020-04-24T06:29:41.914321+00:00 heroku[web.1]: State changed from starting to up
2020-04-24T06:30:03.318933+00:00 heroku[web.1]: State changed from up to crashed

You could try running heroku locally (https://devcenter.heroku.com/articles/heroku-local) to help address your issues before deploying to Heroku.

But from the error messages, it looks like your app is attempting to access / and /favicon.ico. You should put favicon.ico in a folder called assets/ which is at the same level as app.py. Without your code, it’s hard to tell why you are getting the error assoc. with /