RedmineUpgrade » History » Version 2

Version 1 (Jean-Philippe Lang, 2007-09-29 13:33) → Version 2/82 (Jean-Philippe Lang, 2007-11-18 14:12)

h1. Upgrading

h2. Upgrading from a SVN checkout

1. Go to the Redmine root directory and run the following command:

svn update

2. Migrate your database (please, make a database backup before doing this):

rake db:migrate RAILS_ENV="production"

3. Clear the cache and existing sessions:

<pre>
rake tmp:cache:clear
rake tmp:sessions:clear
</pre>

4. Restart the application and go to “Admin → Roles & permissions → Permissions report” to check/set permissions for the new features, if any.

h2. Upgrading from a downloaded release

1.
Uncompress the new program archive in a new directory.

3. Copy your database settings (@RAILS_ROOT/config/database.yml@) (RAILS_ROOT/config/database.yml) into the new @config@ config directory.

4. Migrate your database (please, make a database backup before doing this): database:

rake db:migrate RAILS_ENV="production"

5. Copy the @RAILS_ROOT/files@ RAILS_ROOT/files directory content into your new installation.

6. Start the application and go to “Admin → Roles & permissions → Permissions report” to check/set permissions for the new features, if any.

Note: when upgrading your code with svn update, don&#x27;t forget to clear the application cache (RAILS_ROOT/tmp/cache) before restarting.