Closed gexijin closed 1 year ago
Moved library statements from the beginning of the server.R to each of the functions. This should help.
changed server configuration file so that R process idles longer: app_idle_timeout 180000;
run_as shiny; preserve_logs true;
frame_options deny;
server { listen 3838;
location / {
# Host the directory of Shiny Apps stored in this directory
site_dir /srv/shiny-server;
# Log all Shiny output to files in this directory
log_dir /var/log/shiny-server;
# When a user visits the base URL rather than a particular application,
# an index of the applications available in this directory will be shown.
directory_index on;
app_init_timeout 1800;
app_idle_timeout 1800000;
} }
The http://ge-lab.org/idep/ needs 7 seconds to load.
Try to move the library( ) scripts from the very beginning of the server.R to places where these packages are needed.