Heroku deploy error : gunicorn.errors.HaltServer: <HaltServer 'App failed to load.' 4> Heroku deploy error : gunicorn.errors.HaltServer: <HaltServer 'App failed to load.' 4> heroku heroku

Heroku deploy error : gunicorn.errors.HaltServer: <HaltServer 'App failed to load.' 4>


You must pass the flask server to the dash app, i.e.

server = flask.Flask(__name__)app = dash.Dash(external_stylesheets=[dbc.themes.BOOTSTRAP], server=server)

Assuming this code is inside index.py, your profile should be along the lines of,

web: gunicorn index:server