Change default path of shiny server directory

Viewed 3195

I'm trying to set up a shiny server. I need to change default directory of Shiny apps (to avoid sudo permissions).

I changed original shiny-server.conf to:

#CHANGED;
run_as userA;

server {
  listen 3838;

  location / {

    # CHANGED
    site_dir /home/userA/shiny-server;

    # CHANGED
    log_dir /home/userA/shiny-server_log;

    directory_index on;
  }
}

However, address:3838 gives error:

An error has occurred

Invalid application configuration.

EACCES: permission denied, stat '/home/userA/shiny-server'

Question: How can configure shiny-server.conf to work with wanted directory?

1 Answers
Related