RedmineUpgrade » History » Version 11

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

1 1 Jean-Philippe Lang
h1. Upgrading
2 1 Jean-Philippe Lang
3 2 Jean-Philippe Lang
h2. Upgrading from a SVN checkout
4 2 Jean-Philippe Lang
5 9 Jean-Philippe Lang
Before upgrading, check that you meet the [[RedmineInstall#Requirements|requirements]] for the version you're about to install.
6 9 Jean-Philippe Lang
7 2 Jean-Philippe Lang
1. Go to the Redmine root directory and run the following command:
8 11 Mischa The Evil
<pre>
9 11 Mischa The Evil
svn update
10 11 Mischa The Evil
</pre>
11 1 Jean-Philippe Lang
12 1 Jean-Philippe Lang
2. Migrate your database (please, make a database backup before doing this):
13 11 Mischa The Evil
<pre>
14 11 Mischa The Evil
rake db:migrate RAILS_ENV="production"
15 11 Mischa The Evil
</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 10 Azamat Hackimov
<pre>
19 10 Azamat Hackimov
rake config/initializers/session_store.rb
20 10 Azamat Hackimov
</pre>
21 10 Azamat Hackimov
22 10 Azamat Hackimov
Also remember that Redmine from r2494 now uses Rails 2.2.2, don't forget upgrade existing installation:
23 10 Azamat Hackimov
<pre>
24 10 Azamat Hackimov
gem install rails -v=2.2.2
25 10 Azamat Hackimov
</pre>
26 10 Azamat Hackimov
27 2 Jean-Philippe Lang
3. Clear the cache and existing sessions:
28 2 Jean-Philippe Lang
29 2 Jean-Philippe Lang
<pre>
30 2 Jean-Philippe Lang
rake tmp:cache:clear
31 2 Jean-Philippe Lang
rake tmp:sessions:clear
32 2 Jean-Philippe Lang
</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 2 Jean-Philippe Lang
36 1 Jean-Philippe Lang
h2. Upgrading from a downloaded release
37 1 Jean-Philippe Lang
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 1 Jean-Philippe Lang
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 10 Azamat Hackimov
rake db:migrate RAILS_ENV="production"
47 10 Azamat Hackimov
</pre>
48 10 Azamat Hackimov
49 10 Azamat Hackimov
5. If you upgading from 0.8.x to SVN or 0.9.x, you must generate secret for cookie store:
50 10 Azamat Hackimov
<pre>
51 10 Azamat Hackimov
rake config/initializers/session_store.rb
52 10 Azamat Hackimov
</pre>
53 10 Azamat Hackimov
54 10 Azamat Hackimov
Also remember that Redmine from r2494 now uses Rails 2.2.2, don't forget upgrade existing installation:
55 10 Azamat Hackimov
<pre>
56 10 Azamat Hackimov
gem install rails -v=2.2.2
57 10 Azamat Hackimov
</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.