Heroku Deploy: dash.exceptions.NoLayoutException Heroku Deploy: dash.exceptions.NoLayoutException heroku heroku

Heroku Deploy: dash.exceptions.NoLayoutException


This is what worked for me:

index.py

from app import app, server

app.py

server = app.server

Procfile

web: gunicorn index:server

Apparently, that multi-app example you linked to, the one in the offical Dash docs, has a mistake. Gunicorn doesn't accept the syntax, <file>:<variable>.<sub-variable>. This forum thread pointed me towards this solution:

https://community.plotly.com/t/deploy-dash-to-heroku-error-failed-to-parse-app-server-as-an-attribute-name-or-function-call/47909