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