I’ve been using the “improved_tabs” branch from the dash-core-components github repository and it’s working well locally but when I try to deploy it to an external server using gunicorn/nginx I run into issues finding the relevant css/js files. Unsurprising since I’ve set
app.css.config.serve_locally = True
app.scripts.config.serve_locally = True
I tried commenting these lines out, but since it’s a dev branch unpkg doesn’t have the packages. (GET https://email@example.com/dash_core_components/bundle.js 404 ())
It seems to me that the next step would be to find all of the files required; stick them in a /static directory somewhere and have nginx alias /_dash-component-suites/ to the static directory.
Before I headed out to do that though I thought I’d ask if there’s a better / accepted way to deploy the Dash app where the scripts and css are hosted locally. As mentioned I’m using nginx/gunicorn and all other dash packages apart from core-components are the versions found using pip.