【发布时间】:2018-07-28 23:11:52
【问题描述】:
我在远程 Centos 服务器上安装了 shiny-server。 闪亮的配置如下所示:
# Instruct Shiny Server to run applications as the user "shiny"
run_as <user>;
# 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;
}
}
每当我将闪亮的应用程序文件放在/srv/shiny-server 文件夹中时,它都能很好地加载。
但是我尝试创建一个文件夹,然后使用文件路径来调用不同的应用程序,但它们需要永远加载。
为了使用路径在一台服务器上部署多个应用程序是否缺少某些东西?
【问题讨论】:
-
您应该将应用程序放置在
/srv/shiny-server下的可能分层结构中。例如,/srv/shiny-server/app1/app.R可通过 localhost:3838/app1 访问
标签: shiny shiny-server