rails2.3.8からmongrel 1.1.5 がまともに動かないくなるというバグがある。
Mongrel doesn't work with rails 2.3.8
https://rails.lighthouseapp.com/projects/8994/tickets/4690
一応このコードをinitializeにmongre.rbとかいうファイルでおけばいいらしい
https://gist.github.com/471663
が、私の環境(Apache+mongrel)では無理だった。
#apacheでリダイレクトしてるせいか?
開こうとしたらブラウザ(IE)にhtmlソースが表示され
Chromeでひらくと You are being redirected とか出てる。
この問題は結局こういうことらしい。
RoRでYou are being redirectedと出る
http://www.kazu.tv/blog/archives/001023.html
まー面倒なのでこの際にバックグラウンドwebサーバを thin に変更した。
thin のインストール
gem install thin
コンフィgファイルの作成
config/thin.yml
pid: tmp/pids/thin.pid
address: 0.0.0.0
port: 8080
log: log/thin.log
servers: 4
timeout: 30
environment: production
daemonize: true
chdir: /hogehoge/redmine
起動
thin start -C config/thin.yml
停止
thin stop -C config/thin.yml
再起動
thin restart -C config/thin.yml
スポンサーサイト