r - 如何最好地设置我的 Shiny Server 的开发部署?
问题描述
我的 Shinyconfig
文件设置如下:
# 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
app_dir /srv/shiny-server/prod;
# Log all Shiny output to files in this directory
log_dir /var/log/shiny-server;
}
}
这将我的生产应用程序托管shiny-server
在基本 URL 的目录中,这是我想要的行为。我怎么还能托管存储在的 Shiny 应用程序的开发shiny-server/dev
版本baseurl.com/dev
?
如果我尝试以下操作,我会在以下位置获得“未找到”网页baseurl.com/dev
# 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
app_dir /srv/shiny-server/prod;
# Log all Shiny output to files in this directory
log_dir /var/log/shiny-server;
}
location /dev {
# Host the directory of Shiny Apps stored in this directory
app_dir /srv/shiny-server/dev;
# Log all Shiny output to files in this directory
log_dir /var/log/shiny-server;
}
}
解决方案
推荐阅读
- ios - 我可以从 Xcode 11 开始手动安装 Socket-IO-Client-Swift 库吗?
- debian - slapd 在 debian 8 中取消依赖
- reactjs - 如何避免“选项”道具被内联初始化?
- python - Pandas 日期时间列操作
- jquery - 在 jQuery 中的 .off() 函数之后返回到按钮的链接
- angular - 角度输入不产生结果。在父组件中
- javascript - lodash 节流 - 绑定时未调用函数
- python - 生成一个数字列表——一般来说哪个更好?
- java - 子点击侦听器在可展开列表视图中不起作用
- ruby-on-rails - 无法写入未知属性“parent_id”、has_one 和 belongs_to