RedmineUpgrade » History » Version 9

Jean-Philippe Lang, 2009-01-04 16:54

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 2 Jean-Philippe Lang
9 2 Jean-Philippe Lang
  svn update
10 2 Jean-Philippe Lang
11 2 Jean-Philippe Lang
2. Migrate your database (please, make a database backup before doing this):
12 2 Jean-Philippe Lang
13 2 Jean-Philippe Lang
  rake db:migrate RAILS_ENV="production"
14 2 Jean-Philippe Lang
15 2 Jean-Philippe Lang
3. Clear the cache and existing sessions:
16 2 Jean-Philippe Lang
17 2 Jean-Philippe Lang
<pre>
18 2 Jean-Philippe Lang
rake tmp:cache:clear
19 2 Jean-Philippe Lang
rake tmp:sessions:clear
20 2 Jean-Philippe Lang
</pre>
21 2 Jean-Philippe Lang
22 6 Thomas Lecavelier
4. Restart the application and go to _"Admin -> Roles & permissions"_ to check/set permissions for the new features, if any.
23 2 Jean-Philippe Lang
24 2 Jean-Philippe Lang
h2. Upgrading from a downloaded release
25 2 Jean-Philippe Lang
26 2 Jean-Philippe Lang
1. Uncompress the new program archive in a new directory.
27 1 Jean-Philippe Lang
   
28 3 Jean-Philippe Lang
2. Copy your database settings @config/database.yml@ into the new @config@ directory.
29 3 Jean-Philippe Lang
30 8 Jean-Philippe Lang
3. Copy config/email.yml.example to config/email.yml and edit this file to adjust your SMTP settings.
31 3 Jean-Philippe Lang
32 7 Jean-Philippe Lang
4. Go to your new redmine directory, then migrate your database (please, make a database backup before doing this):
33 1 Jean-Philippe Lang
34 1 Jean-Philippe Lang
  rake db:migrate RAILS_ENV="production"
35 1 Jean-Philippe Lang
36 2 Jean-Philippe Lang
5. Copy the @RAILS_ROOT/files@ directory content into your new installation.
37 1 Jean-Philippe Lang
38 6 Thomas Lecavelier
6. Start the application and go to _"Admin -> Roles & permissions"_ to check/set permissions for the new features, if any.