iDEP-SDSU / idep

Integrated Differential Expression and Pathway analysis
http://ge-lab.org/idep
125 stars 61 forks source link

Loading time is too slow #15

Closed gexijin closed 1 year ago

gexijin commented 7 years ago

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.

gexijin commented 7 years ago

Moved library statements from the beginning of the server.R to each of the functions. This should help.

gexijin commented 7 years ago

changed server configuration file so that R process idles longer: app_idle_timeout 180000;

9/5

cat shiny-server.conf

Instruct Shiny Server to run applications as the user "shiny"

run_as shiny; preserve_logs true;

frame_options deny;

Define a server that listens on port 3838

server { listen 3838;

Define a location at the base URL

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;

} }