R 服务器配置工作不正常
我正在尝试设置一个闪亮的服务器,在那里我想显示我闪亮的应用程序,我有一个配置文件,看起来像这样R 服务器配置工作不正常,r,shiny,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 / {
# 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中正确运行