読者です 読者をやめる 読者になる 読者になる

Redmine 2.5.1.stable を 2.5.2.stable にアップグレード

Server

Redmine 2.5.1 には Chrome 36 のバグに起因する挙動不安定性 があったようなので Redmine 2.5.2 にアップデートした。手順はほぼ 2.4.3->2.5.1 と同じ。ただの作業ログです。

[~]$ sudo service httpd stop
[~]$ wget http://www.redmine.org/releases/redmine-2.5.2.zip
[~]$ unzip redmine-2.5.2.zip
[~]$ cp /var/lib/redmine/config/database.yml redmine-2.5.2/config
[~]$ cp /var/lib/redmine/config/configuration.yml redmine-2.5.2/config
[~]$ cp -r /var/lib/redmine/files/ redmine-2.5.2/
[~]$ cp -r /var/lib/redmine/plugins/* redmine-2.5.2/plugins/
[~]$ sudo mv /var/lib/redmine/ ~/`date +%F`-redmine/
[~]$ sudo mv redmine-2.5.2/ /var/lib/redmine
[~]$ cd /var/lib/redmine
[redmine]$ sudo bundle install --without development test postgresql rmagick
[redmine]$ sudo rake generate_secret_token
[redmine]$ sudo rake db:migrate RAILS_ENV=production
[redmine]$ sudo rake redmine:plugins:migrate RAILS_ENV=production
[redmine]$ sudo rake tmp:cache:clear
[redmine]$ sudo rake tmp:sessions:clear
[redmine]$ vi app/controllers/files_controller.rb
[redmine]$ vi public/stylesheets/application.css
[redmine]$ vi app/controllers/issues_controller.rb 
[redmine]$ vi lib/redmine/scm/adapters/git_adapter.rb
[redmine]$ sudo chown -R apache:apache /var/lib/redmine
[redmine]$ sudo service https start