I followed the tutorial on the Plotly Github for deploying to Heroku. I managed to get everything uploaded, but none of the Graph components are initialising.
I’m getting the same issue as one of the github users on Issue #22:
“/_dash-update-component Failed to load resource: the server responded with a status of 403 (FORBIDDEN)”
@chriddyp - Just reading the deployment docs where you say that ‘Flask’s built-in server is not suitable for production’. Forgive my ignorance, but how would one productionise a Dash app? What alternatives to Flask are there for such a task?
Yeah, sorry, that’s pretty confusing. All this means is that you are supposed to “run” Dash apps with another server like gunicorn. Running app.run_server() runs the Flask server which can only handle one process at a time. If you run the same app but with gunicorn like $ gunicorn the_name_of_your_dash_file:server, then it will run on multiple processes, handling multiple requests at a single time. If you deployed on heroku following those instructions then you’re running it with gunicorn and “doing it right”
I’ll try to make the docs a little bit more clear. Thanks for the feedback!