Issue with deploy dash > 1.1 on Shinyproxy 2.3.1
See original GitHub issueHi community,
I am trying to deploy a dash (latest build) app with Shinyproxy. It seems that the last successful dash/dash dependencies built than can work with Shinyproxy is:
dash 1.1.1 dash-bootstrap-components 0.7.1 dash-core-components 1.1.1 dash-html-components 1.0.0 dash-renderer 1.0.0 dash-table 4.1.0
I have tried a couple of fixes to launch it without luck, neither of which works with Dash > 1.1.0. I am adding the known solutions I’ve tried so far:
Method 1:
app = dash.Dash(__name__, requests_pathname_prefix='/app_direct/dash-demo/')
Method 2:
app = dash.Dash(external_stylesheets=[dbc.themes.BOOTSTRAP],
suppress_callback_exceptions=True,
prevent_initial_callbacks=True,
requests_pathname_prefix='/app_direct/<appname>')
#app.config.update({
# # remove the default of '/'
# 'routes_pathname_prefix': '',
# # remove the default of '/'
# 'requests_pathname_prefix': ''
# })
I did try to include __name__
and/or exclude external_stylesheets
I also tried without success to move the request inside the config.update
:
app.config.update({
# remove the default of '/'
'routes_pathname_prefix': '',
# remove the default of '/'
'requests_pathname_prefix': '/app_direct/<appname>/'
})
For reference, these solutions always result in none of this components loading:
polyfill@7.v1_6_0m1598451932.8.7.min.js react@16.v1_6_0m1598451932.13.0.min.js react-dom@16.v1_6_0m1598451932.13.0.min.js prop-types@15.v1_6_0m1598451932.7.2.min.js dash_bootstrap_components.v0_10_3m1598451933.min.js bundle.v4_9_0m1598451932.js dash_html_components.v1_0_3m1598451932.min.js dash_core_components.v1_10_2m1598451932.min.js dash_core_components-shared.v1_10_2m1598451932.js dash_renderer.v1_6_0m1598451932.min.js react-dom@16.v1_6_0m1598451932.13.0.min.js prop-types@15.v1_6_0m1598451932.7.2.min.js dash_bootstrap_components.v0_10_3m1598451933.min.js bundle.v4_9_0m1598451932.js dash_html_components.v1_0_3m1598451932.min.js dash_core_components.v1_10_2m1598451932.min.js dash_core_components-shared.v1_10_2m1598451932.js dash_renderer.v1_6_0m1598451932.min.js
I would appreciate any help with this issue.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (3 by maintainers)
Top GitHub Comments
I see now that this solution is exclusive to >1.1 and not a general solution for all version of dash.
I’ve now reproduced this fix with dash-demo and a second more complex application. Thanks so much for your assistance.
UPDATE: Dash 1.17.0 and ShinyProxy 2.4.1 seem to have done the trick. Just needs: