Redmine Upgrade

The official page for Redmine upgrade is here. Below I will write down the instructions I use when upgrading to the latest version of Redmine.

Note that I have cloned Mercurial (Hg) repository and am updating by pulling the latest changes.

So, here goes.

    1. Backup current version (db).
    2. Pull latest repository changes and Update to the desired version.
    3. Update the database:
      1. Open command prompt
      2. Go to Redmine root directory
      3. Run
        1. rake db:migrate RAILS_ENV=production
      4. Sometimes an upgrade will require installation of missing gems. In that case run
        1. bundle install
      5. or
        1. bundle update
      6. For plugins run
        1. rake redmine:plugins:migrate RAILS_ENV=production
    4. Clean up
      1. rake tmp:cache:clear
      2. rake tmp:sessions:clear

That's it!