闪亮的服务器配置无法正常工作

时间:2019-08-12 08:15:33

标签: r shiny

我正在尝试设置一个闪亮的服务器,我要在其中显示闪亮的应用程序,我有一个配置文件,看起来像这样。

# Instruct Shiny Server to run applications as the user "shiny"
run_as shiny;

# 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;
  }

  location /app {

    app_dir /srv/shiny-server/role-mining-app;

 }
}

这个想法是,我想最初在URL {url}:{port}/app下提供我的应用程序,但是使用这些配置却无法加载

我检查了目录路径是否同时提供了server.rui.r文件,并且检查了项目可以在R-studio中正确运行。

0 个答案:

没有答案