LoginSignup
2
2

More than 5 years have passed since last update.

Redmineのバージョンアップ

Posted at

1.バックアップ

cp -Rp /var/lib/redmine/files .
/usr/pgsql-10/bin/pg_dump -U redmine -Fc --file=redmine.sqlc redmine

2.アップグレード

cd /var/lib/redmine
svn update
bundle update

3.データベースの更新

bundle exec rake db:migrate RAILS_ENV=production
bundle exec rake redmine:plugins:migrate RAILS_ENV=production

4.キャッシュのクリア

bundle exec rake tmp:cache:clear tmp:sessions:clear RAILS_ENV=production

5.再起動

chown -R apache redmine-3.4.3
chgrp -R apache redmine-3.4.3
service httpd restart

6.バージョンアップ

wget http://www.redmine.org/releases/redmine-3.4.3.tar.gz
tar -zxvf redmine-3.4.3.tar.gz
rm redmine-3.4.3.tar.gz

7.バックアップの戻し

cp -Rp 上記1でバックアップしたfiles redmine-3.4.3/files/.

8.プラグインのアップデート

cd /var/lib/redmine/plugins
git clone https://github.com/peclik/clipboard_image_paste.git
git clone https://github.com/suer/redmine_absolute_dates.git
git clone https://github.com/koppen/redmine_github_hook.git
git clone https://github.com/akiko-pusu/redmine_issue_templates.git
git clone https://github.com/sciyoshi/redmine-slack.git
git clone https://github.com/haru/redmine_theme_changer.git
git clone https://github.com/haru/redmine_wiki_extensions.git
git clone https://github.com/bdemirkir/sidebar_hide.git
git clone https://github.com/onozaty/redmine-view-customize.git
git clone https://github.com/akiko-pusu/redmine_banner.git
git clone https://github.com/suer/redmine_japanese_help.git
git clone https://github.com/ameya86/redmine_maintenance.git
mv redmine-slack redmine_slack
wget https://bitbucket.org/tkusukawa/redmine_work_time/downloads/redmine_work_time-0.3.4.zip
unzip redmine_work_time-0.3.4.zip
rm redmine_work_time-0.3.4.zip

bundle install --without development test rmagick
→redmineとpluginのGem定義のバージョンの競合が発生した場合は、Gemfileを修正して大きい方のバージョンに合わせる。

bundle exec rake generate_secret_token
bundle exec rake db:migrate RAILS_ENV=production
bundle exec rake redmine:plugins:migrate RAILS_ENV=production
bundle exec rake tmp:cache:clear tmp:sessions:clear RAILS_ENV=production
service httpd restart
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2