EventMachine インストール
Thin サーバーの動作には EventMachine が必要。
しかし Ruby 64bit 2.0 では導入時にコンパイルエラーが発生する。
いずれ修正されるかもしれないが、現在の所
のカスタマイズした gem を使わせて頂いた。
gem カスタマイズ方法参考:http://higelog.brassworks.jp/?p=2212
Apache HTTP Server 設定
- C:\Program Files\Apache Software Foundation\Apache24\conf\httpd.conf
コメント外す
LoadModule proxy_http_module modules/mod_proxy_http.so
追加
<Location /redmine>
ProxyPass http://localhost:3000/redmine
ProxyPassReverse http://localhost:3000/redmine
</Location>
Redmine 設定
- C:\redmine-2.5.0\config\environment.rb
スタイルシート、Javascript のパスを通知
Redmine::Utils::relative_url_root = "/redmine"
Thin サーバーの起動
thin -e production -p 3000 start --prefix /redmine
エラー発生:rack のバージョンが違う
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.5.3/lib/bundler/runtime.rb:34:in `block in setup': You have already activated rack 1.5.2, but your Gemfile requires rack 1.4.5. Prepending `bundle exec` to your command may solve this. (Gem:
:LoadError)
1.5.2 をアンインストールする
gem uninstall rack
Select gem to uninstall:
1. rack-1.4.5
2. rack-1.5.2
3. All versions
> 2
エラー発生:繋がらない
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/thin-1.6.2/lib/thin/backends/tcp_server.rb:16:in `connect': cannot load such file -- thin/connection (LoadError)
C:\redmine-2.5.0\Gemfile に追加
gem thin
http://localhost/redmine でアクセスを確認

人気ブログランキングへ