File size: 367 Bytes
7fbc44d
 
 
 
 
 
 
 
 
 
12169e5
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

# デーモンモードでNginxを起動
nginx

# Plumber APIを起動(8000番ポート)
R -e "plumber::pr_run(plumber::pr('/srv/app/plumber.R'), port=8000, host='0.0.0.0')" &

# メインプロセスとしてShinyアプリを起動(9000番ポート)
# フォアグラウンドで実行
R -e "shiny::runApp('/srv/app', host='0.0.0.0', port=9000)"