railsアプリの再起動はrestart.txtで
そういえば最初にチラっとusers guide見たときに
目にしてたんだけど、すっかり忘れてapache再起動してた。
myapp/redmineを起動させて
$ sudo passenger-status ----------- General information ----------- max = 6 count = 2 active = 0 inactive = 2 Waiting on global queue: 0 ----------- Domains ----------- /webapp/rails/myapp: PID: 49175 Sessions: 0 Processed: 1 Uptime: 4s /webapp/rails/rails/redmine: PID: 49163 Sessions: 0 Processed: 1 Uptime: 2m 51s
restart.txtを作成。
touch redmine/tmp/restart.txt
初回アクセス時に再起動される。
$ sudo passenger-status ----------- General information ----------- max = 6 count = 2 active = 0 inactive = 2 Waiting on global queue: 0 ----------- Domains ----------- /webapp/rails/myapp: PID: 49175 Sessions: 0 Processed: 2 Uptime: 3m 46s /webapp/rails/rails/redmine: PID: 50086 Sessions: 1 Processed: 0 Uptime: 7s
補足
8.8. Making the application restart after each request
always_restart.txt を置いておけば毎リクエスト毎に再起動するらしい。
ま、あんまり使わないか。