✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

Failure to deploy dash > 1.1 on Shinyproxy

Hi community,

I am trying to deploy a dash 1.14 (or newer) app with Shinyproxy (tried 2.0.1 and 2.3.1). It seems that the last successful dash 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 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.

1 Like