Project

General

Profile

RedmineUpgrade » History » Version 11

Mischa The Evil, 2009-02-23 21:45
Fixed formatting

1 1 Jean-Philippe Lang
h1. Upgrading
2
3 2 Jean-Philippe Lang
h2. Upgrading from a SVN checkout
4
5 9 Jean-Philippe Lang
Before upgrading, check that you meet the [[RedmineInstall#Requirements|requirements]] for the version you're about to install.
6
7 2 Jean-Philippe Lang
1. Go to the Redmine root directory and run the following command:
8 11 Mischa The Evil
<pre>
9
svn update
10
</pre>
11 1 Jean-Philippe Lang
12
2. Migrate your database (please, make a database backup before doing this):
13 11 Mischa The Evil
<pre>
14
rake db:migrate RAILS_ENV="production"
15
</pre>
16 2 Jean-Philippe Lang
17 10 Azamat Hackimov
3. If you upgrading from SVN r2493, you must generate secret for cookie store:
18
<pre>
19
rake config/initializers/session_store.rb
20
</pre>
21
22
Also remember that Redmine from r2494 now uses Rails 2.2.2, don't forget upgrade existing installation:
23
<pre>
24
gem install rails -v=2.2.2
25
</pre>
26
27 2 Jean-Philippe Lang
3. Clear the cache and existing sessions:
28
29
<pre>
30
rake tmp:cache:clear
31
rake tmp:sessions:clear
32
</pre>
33 6 Thomas Lecavelier
34 2 Jean-Philippe Lang
4. Restart the application and go to _"Admin -> Roles & permissions"_ to check/set permissions for the new features, if any.
35
36 1 Jean-Philippe Lang
h2. Upgrading from a downloaded release
37
38 10 Azamat Hackimov
1. Uncompress the new program archive in a new directory.
39 3 Jean-Philippe Lang
40 8 Jean-Philippe Lang
2. Copy your database settings @config/database.yml@ into the new @config@ directory.
41 3 Jean-Philippe Lang
42 11 Mischa The Evil
3. Copy @config/email.yml.example@ to @config/email.yml@ and edit this file to adjust your SMTP settings.
43 1 Jean-Philippe Lang
44
4. Go to your new redmine directory, then migrate your database (please, make a database backup before doing this):
45 10 Azamat Hackimov
<pre>
46
rake db:migrate RAILS_ENV="production"
47
</pre>
48
49
5. If you upgading from 0.8.x to SVN or 0.9.x, you must generate secret for cookie store:
50
<pre>
51
rake config/initializers/session_store.rb
52
</pre>
53
54
Also remember that Redmine from r2494 now uses Rails 2.2.2, don't forget upgrade existing installation:
55
<pre>
56
gem install rails -v=2.2.2
57
</pre>
58 1 Jean-Philippe Lang
59 2 Jean-Philippe Lang
5. Copy the @RAILS_ROOT/files@ directory content into your new installation.
60 1 Jean-Philippe Lang
61 6 Thomas Lecavelier
6. Start the application and go to _"Admin -> Roles & permissions"_ to check/set permissions for the new features, if any.