Set shiny options as required for an Azure Webapp:
options(shiny.port = as.integer(Sys.getenv('PORT'))
.
Your custom container is expected to listen on PORT
, an environment variable set by Azure.
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.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.