I have a Shiny app running in a Shiny server that is installed on a Ubuntu 16.04 server.
When the app is loaded in a browser but not run for a while, it gets disconnected.
Is there a solution that prevents this?
I have a Shiny app running in a Shiny server that is installed on a Ubuntu 16.04 server.
When the app is loaded in a browser but not run for a while, it gets disconnected.
Is there a solution that prevents this?
You can try to put a repeating signal into your server function that worked for my app to be kept alive:
#Keep App alive
keep_alive <- shiny::reactiveTimer(intervalMs = 10000,
session = shiny::getDefaultReactiveDomain())
shiny::observe({keep_alive()})
You can actually disable app_idle_timeout for good by setting it to 0 in your Shiny server config file:
location / {
app_idle_timeout 0;
}