Skip to content

Commit 74dc7cd

Browse files
pinin4fjordsclaude
andcommitted
Attach DT/shinyBS/plotly/shinyjs before runApp
Imports of shinyngs are not auto-attached by library(shinyngs). Without these library() calls, the packages' Shiny resource paths never register with httpuv, so asset requests like sbs/shinyBS.css and the dt-core jquery.dataTables.min.js 404 and datatables / popovers break at runtime. Caught via DevTools on a Platform Studio deploy. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 1af08f0 commit 74dc7cd

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.seqera/Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ COPY app.R data.rds /app/
5959
ENTRYPOINT ["/usr/bin/connect-client", "--entrypoint"]
6060

6161
# The port is set by the CONNECT_TOOL_PORT environment variable.
62-
# shinyngs must be attached before app.R is sourced, because app.R
63-
# calls prepareApp() without namespacing it.
64-
CMD ["micromamba", "run", "-n", "shinyngs", "R", "-e", "library(shinyngs); shiny::runApp('/app', host='0.0.0.0', port=as.integer(Sys.getenv('CONNECT_TOOL_PORT')))"]
62+
# shinyngs must be attached before app.R is sourced (app.R calls
63+
# prepareApp() without namespacing it). DT, shinyBS, plotly, shinyjs
64+
# are also attached so their Shiny resource paths register with httpuv,
65+
# otherwise widget JS/CSS (e.g. jquery.dataTables.min.js, sbs/shinyBS.css)
66+
# 404 and tables/plots fail to render.
67+
CMD ["micromamba", "run", "-n", "shinyngs", "R", "-e", "library(shinyngs); library(DT); library(shinyBS); library(plotly); library(shinyjs); shiny::runApp('/app', host='0.0.0.0', port=as.integer(Sys.getenv('CONNECT_TOOL_PORT')))"]

0 commit comments

Comments
 (0)