我正在尝试设置一个闪亮的服务器,我要在其中显示闪亮的应用程序,我有一个配置文件,看起来像这样。
# 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.r
和ui.r
文件,并且检查了项目可以在R-studio中正确运行。