CentOS6.x apache2.2 でのRedmine3.3アップグレード手順

# cd /usr/local/src
# wget https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.7.tar.gz
# tar zxvf ruby-2.3.7.tar.gz
# cd ruby-2.3.7
# ./configure --disable-install-doc
# make
# make install
# gem install bundler --no-rdoc --no-ri
# cd /var/lib/redmine
# svn switch https://svn.redmine.org/redmine/branches/3.3-stable
# bundle update
# bundle install --without development test --path vendor/bundle
# bundle exec rake generate_secret_token
# RAILS_ENV=production bundle exec rake db:migrate
# bundle exec rake redmine:plugins:migrate RAILS_ENV=production
# gem install passenger --no-rdoc --no-ri
# passenger-install-apache2-module --auto --languages ruby
# passenger-install-apache2-module --snippet
LoadModule passenger_module /usr/local/lib/ruby/gems/2.3.0/gems/passenger-5.2.3/buildout/apache2/mod_passenger.so

PassengerRoot /usr/local/lib/ruby/gems/2.3.0/gems/passenger-5.2.3
PassengerDefaultRuby /usr/local/bin/ruby

# cd /etc/httpd/conf.d
# cp -a passenger.conf passenger.conf.bak
# vi passenger.conf
LoadModule passenger_module /usr/local/lib/ruby/gems/2.3.0/gems/passenger-5.2.3/buildout/apache2/mod_passenger.so

PassengerRoot /usr/local/lib/ruby/gems/2.3.0/gems/passenger-5.2.3
PassengerDefaultRuby /usr/local/bin/ruby

PassengerMaxPoolSize 20
PassengerMaxInstancesPerApp 4
PassengerPoolIdleTime 864000
PassengerStatThrottleRate 10
Header always unset "X-Powered-By"
Header always unset "X-Runtime"
Alias /redmine /var/lib/redmine/public

PassengerBaseURI /redmine
PassengerAppRoot /var/lib/redmine

# unlink /var/www/html/redmine
# chown -R apache:apache /var/lib/redmine
# cd /var/lib/redmine
# bundle exec rake tmp:cache:clear tmp:sessions:clear RAILS_ENV=production
# /etc/init.d/httpd configtest
Syntax OK
# /etc/init.d/httpd start

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です