Project

General

Profile

Actions

Redmine Update » History » Revision 1

Revision 1/17 | Next »
Andreas Kohlbecker, 12/21/2016 01:46 PM


RedmineUpdate

This is a brief summary of the steps required to update this redmine installation.

NOTE: The Redmine installation is a git clone from https://github.com/redmine/redmine. All modifications to existing and newly created configuration files are in the local branch edit-redmine-production. Thereby the update process is quite simple.

In the following it is assumed that the commands are executed from within the redmine installation folder, so as first step

cd $REDMINE_ROOT

1. Backup

mysqldump -uroot -p redmine | bzip2 > redmine-$(date +"%m-%d-%y").sql.bz2
tar -czf ../redmine-$(date +"%m-%d-%y").tar.gz ../redmine

2. Update the code base

git fetch -t
git fetch 
git tag --list

Check if the target release tag is available

Update by rebasing

git rebase $TAG edit-redmine-production
~~

## 3. Update the gems and database

bundle install --without development test rmagick
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


Updated by Andreas Kohlbecker over 7 years ago · 1 revisions