Redmineのバージョンアップ方法
/ 1 min read
Table of Contents
はじめに
前提として、以下の手順でSVNを使ってRedmineをインストールしています。
Redmine 5.0 をUbuntu 22.04 LTSにインストールする手順
Remineのルートディレクトリを探す
ルートディレクトリを忘れた場合、以下のコマンドで探すことができます。
私の環境では/var/lib/redmine
をルートディレクトリにしています。
$ find / -type d -name 'redmine'
バージョンアップ手順
# ルートディレクトリに移動$ cd /var/lib/redmine
# 現状確認$ svn info
# ブランチ切り替え$ svn co https://svn.redmine.org/redmine/branches/x.x-stable
# アップデート$ svn update$ bundle update
# DBアップデート$ bundle exec rake db:migrate RAILS_ENV="production"$ bundle exec rake redmine:plugins:migrate RAILS_ENV="production"
# キャッシュクリア$ bundle exec rake tmp:cache:clear RAILS_ENV=production$ bundle exec rake tmp:sessions:clear RAILS_ENV=production
# Apache再起動$ sudo service apache2 restart