Created
April 23, 2013 06:53
-
-
Save shinofara/5441359 to your computer and use it in GitHub Desktop.
Passengerをruby2.0,rails4に対応させる ref: http://qiita.com/items/4f9129c0b88ab934d901
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo su | |
cd /usr/local/src/ | |
git clone git://github.com/FooBarWidget/passenger.git | |
cd passenger/ | |
gem build passenger.gemspec | |
gem install passenger-4.0.0.rc6.gem |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
passenger-install-apache2-module |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/etc/rc.d/init.d/httpd restart |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Passengerの基本設定。 | |
# passenger-install-apache2-module --snippet を実行して表示される設定を使用。 | |
# 環境によって設定値が異なりますので以下の3行はそのまま転記しないでください。 | |
# | |
# ↓ここでsoファイルのパスを記述 | |
LoadModule passenger_module /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.0.rc6/libout/apache2/mod_passenger.so | |
PassengerRoot /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.0.rc6 | |
PassengerRuby /usr/bin/ruby | |
# Passengerが追加するHTTPヘッダを削除するための設定(任意)。 | |
# | |
Header always unset "X-Powered-By" | |
Header always unset "X-Rack-Cache" | |
Header always unset "X-Content-Digest" | |
Header always unset "X-Runtime" | |
# 必要に応じてPassengerのチューニングのための設定を追加(任意)。 | |
# 詳しくはPhusion Passenger users guide(http://www.modrails.com/documentation/Users%20guide%20Apache.html)をご覧ください。 | |
PassengerMaxPoolSize 20 | |
PassengerMaxInstancesPerApp 4 | |
PassengerPoolIdleTime 3600 | |
PassengerUseGlobalQueue on | |
PassengerHighPerformance on | |
PassengerStatThrottleRate 10 | |
PassengerSpawnMethod smart | |
RailsAppSpawnerIdleTime 86400 | |
RailsFrameworkSpawnerIdleTime 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment