This App runs well locally, but It’s hard to point where the problem is during deployment. I would really appreciate some help.
Instantiating app and wrapping it with WhiteNoise
to serve static pages:
app = dash.Dash(__name__, external_stylesheets=['static/bootstrap.min.css'], title='Possibility Dash Apps Analytics',
update_title='Loading...',
meta_tags=[{'name': 'viewport', 'content': 'width=device-width, initial-scale=1.0'},
{'name': 'Dash Analytics Application',
'content': 'Best library for making analytics/AI/ML apps in python'},
{'http-equiv': 'X-UA-Compatible', 'content': 'IE=edge'}])
server = app.server
server.wsgi_app = WhiteNoise(server.wsgi_app, root='static/')
auth = dash_auth.BasicAuth(
app,
auth.approve()
)
Running the application
if __name__ == '__main__':
app.run_server(debug=True)
Procfile
web: gunicorn app:server
My Directory
The error generated due to deployment: