Project

General

Profile

Redmine Update » History » Version 2

Andreas Kohlbecker, 12/21/2016 01:47 PM

1 1 Andreas Kohlbecker
# RedmineUpdate
2
3
This is a brief summary of the steps required to update this redmine installation.
4
5
**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.
6
7
In the following it is assumed that the commands are executed from within the redmine installation folder, so as first step
8
9
~~~
10
cd $REDMINE_ROOT
11
~~~
12
13
## 1. Backup  
14
15
~~~
16
mysqldump -uroot -p redmine | bzip2 > redmine-$(date +"%m-%d-%y").sql.bz2
17
tar -czf ../redmine-$(date +"%m-%d-%y").tar.gz ../redmine
18
~~~
19
20
## 2. Update the code base
21
22
~~~
23
git fetch -t
24
git fetch 
25
git tag --list
26
~~~
27
28
Check if the target release tag is available
29
30
Update by rebasing
31
32
~~~
33
git rebase $TAG edit-redmine-production
34 2 Andreas Kohlbecker
~~~
35 1 Andreas Kohlbecker
36
## 3. Update the gems and database
37
38
~~~
39
bundle install --without development test rmagick
40
bundle exec rake generate_secret_token
41
bundle exec rake db:migrate RAILS_ENV=production
42
bundle exec rake redmine:plugins:migrate RAILS_ENV=production
43
bundle exec rake tmp:cache:clear tmp:sessions:clear
44
~~~
45 2 Andreas Kohlbecker
46
Finally go to "Administration -> Roles & permissions" to check/set permissions
47
    for new features, if any
48
49 1 Andreas Kohlbecker