memo

gem install rack -v=1.1.2 --no-rdoc --no-ri
gem install rake -v=0.9.2 --no-rdoc --no-ri
gem install i18n -v=0.4.2 --no-rdoc --no-ri
gem install rmagick --no-rdoc --no-ri
gem install rdoc --no-ri --no-rdoc
gem install mysql --no-rdoc --no-ri
gem install rails -v 2.3.14 --include-dependencies --no-rdoc --no-ri
svn co http://redmine.rubyforge.org/svn/trunk redmine

    • database.ymlを作成

rake generate_session_store RAILS_ENV=production
rake db:migrate RAILS_ENV=production

redmine-1.3.0は新規インストールだとバグあり。
Trunkバージョンを使用する。

gemのインストール先は
/usr/local/lib/ruby/gems/1.8
#/usr/local/がインストール先

The Apache 2 module was successfully installed.

Please edit your Apache configuration file, and add these lines:

LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.11/ext/apache2/mod_passenger.so
PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.11
PassengerRuby /usr/local/bin/ruby

After you restart Apache, you are ready to deploy any number of Ruby on Rails
applications on Apache, without any further Ruby on Rails-specific
configuration!



passenger-install-apache2-module --snippet
で確認できる。

インストール
# gem install passenger --no-rdoc --no-ri
# passenger-install-apache2-module



ファイル作成 /etc/httpd/conf.d/passnger.conf

# Passengerの基本設定。
# passenger-install-apache2-module --snippet を実行して表示される設定を使用。
# 環境によって設定値が異なりますので以下の3行はそのまま転記しないでください。
#
LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.11/ext/apache2/mod_passenger.so
PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.11
PassengerRuby /usr/local/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のチューニングのための設定を追加(任意)。
#
PassengerMaxPoolSize 20
PassengerMaxInstancesPerApp 4
PassengerPoolIdleTime 3600
PassengerUseGlobalQueue on
PassengerHighPerformance on
PassengerStatThrottleRate 10
RailsSpawnMethod smart
RailsAppSpawnerIdleTime 86400
RailsFrameworkSpawnerIdleTime 0
Apacheの起動および自動起動の設定

RailsBaseURI /redmine



コマンド
/etc/init.d/httpd start
chkconfig httpd on
chown -R apache:apache /var/lib/redmine

gitと連携
http://meme.efcl.info/2011/12/redminegit.html



Not a git Repository
がでたら
レポジトリを下記場所に置く
/var/project/rails_test.git

設定でリポジトリのパスを下記に設定
/var/project/rails_test.git

http://blog.redmine.jp/articles/redmine-1_3-installation_centos/
ほとんどの情報をこちらから参照させて頂いて作成。
感謝。