diff --git a/Dockerfile b/Dockerfile index 39b3cda..7519d60 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ ARG MUGGLE_TAG=f7fb6146d8712c4bffb024f4d4f40c40ffab5598 FROM subugoe/muggle-buildtime-onbuild:${MUGGLE_TAG} as buildtime FROM subugoe/muggle-runtime-onbuild:${MUGGLE_TAG} as runtime -CMD shinycaas::az_webapp_shiny_opts(); shinycaas::runOldFaithful() +CMD shinycaas::shiny_opts_az(); shinycaas::runOldFaithful() diff --git a/R/azure.R b/R/azure.R index 44b04e4..e702824 100644 --- a/R/azure.R +++ b/R/azure.R @@ -20,19 +20,17 @@ AzureAppService::az_configure #' If your image suggests `EXPOSE`d ports, that may be respected by Azure (undocumented behavior). #' - `options(shiny.host = "0.0.0.0")` to make your shiny application accessable to the Azure Webapp hosting environment. #' -#' You can also set these options manually, see [az_webapp()]. -#' #' @family azure functions #' #' @export shiny_opts_az <- function() { port <- Sys.getenv("PORT") if (port == "") { - cli::cli_alert_warning( - "Could not find environment variable {cli::cli_code('PORT')}.", - "Perhaps this is running outside of Azure?", - "Reverting to shiny default." - ) + cli::cli_alert_warning(c( + "Could not find environment variable {.envvar PORT}. ", + "Perhaps this is running outside of Azure? ", + "Reverting to shiny default. " + )) port <- NULL } else { port <- as.integer(port) diff --git a/man/shiny_opts_az.Rd b/man/shiny_opts_az.Rd index 1acc516..4020991 100644 --- a/man/shiny_opts_az.Rd +++ b/man/shiny_opts_az.Rd @@ -15,7 +15,4 @@ If your image suggests \code{EXPOSE}d ports, that may be respected by Azure (und \item \code{options(shiny.host = "0.0.0.0")} to make your shiny application accessable to the Azure Webapp hosting environment. } } -\details{ -You can also set these options manually, see \code{\link[=az_webapp]{az_webapp()}}. -} \concept{azure functions}