okata commited on
Commit
7fbc44d
·
verified ·
1 Parent(s): 5cfb0ff

Update scripts/start.sh

Browse files
Files changed (1) hide show
  1. scripts/start.sh +10 -8
scripts/start.sh CHANGED
@@ -1,9 +1,11 @@
1
- # デーモンモードでNginxを起動
2
- nginx
3
-
4
- # Plumber APIを起動(8000番ポート)
5
- R -e "plumber::pr_run(plumber::pr('/srv/app/plumber.R'), port=8000, host='0.0.0.0')" &
6
-
7
- # メインプロセスとしてShinyアプリを起動(9000番ポート)
8
- # フォアグラウンドで実行
 
 
9
  R -e "shiny::runApp('/srv/app', host='0.0.0.0', port=9000)"
 
1
+ #!/bin/bash
2
+
3
+ # デーモンモードでNginxを起動
4
+ nginx
5
+
6
+ # Plumber APIを起動(8000番ポート)
7
+ R -e "plumber::pr_run(plumber::pr('/srv/app/plumber.R'), port=8000, host='0.0.0.0')" &
8
+
9
+ # メインプロセスとしてShinyアプリを起動(9000番ポート)
10
+ # フォアグラウンドで実行
11
  R -e "shiny::runApp('/srv/app', host='0.0.0.0', port=9000)"