Chris@0: == Redmine upgrade Chris@0: Chris@0: Redmine - project management software Chris@441: Copyright (C) 2006-2011 Jean-Philippe Lang Chris@0: http://www.redmine.org/ Chris@0: Chris@0: Chris@0: == Upgrading Chris@0: Chris@0: 1. Uncompress the program archive in a new directory Chris@0: Chris@0: 2. Copy your database settings (RAILS_ROOT/config/database.yml) Chris@210: and your configuration file (RAILS_ROOT/config/configuration.yml) Chris@210: into the new config directory Chris@210: Note: before Redmine 1.2, SMTP configuration was stored in Chris@210: config/email.yml. It should now be stored in config/configuration.yml. Chris@0: Chris@0: 3. Copy the RAILS_ROOT/files directory content into your new installation Chris@0: This directory contains all the attached files. Chris@0: Chris@0: 4. Copy the folders of the installed plugins and themes into new installation Chris@0: Chris@0: 5. Generate a session store secret Chris@0: Chris@0: Redmine stores session data in cookies by default, which requires Chris@0: a secret to be generated. Under the new application directory run: Chris@0: rake generate_session_store Chris@0: Chris@0: DO NOT REPLACE OR EDIT ANY OTHER FILES. Chris@0: Chris@0: 6. Migrate your database Chris@0: Chris@441: If you are upgrading to Rails 2.3.11 as part of this migration, you Chris@0: need to upgrade the plugin migrations before running the plugin migrations Chris@0: using: Chris@0: rake db:migrate:upgrade_plugin_migrations RAILS_ENV="production" Chris@0: Chris@0: Please make a backup before doing this! Under the new application Chris@0: directory run: Chris@0: rake db:migrate RAILS_ENV="production" Chris@0: Chris@0: If you have installed any plugins, you should also run their database Chris@0: migrations using: Chris@0: rake db:migrate_plugins RAILS_ENV="production" Chris@0: Chris@0: 7. Clean up Chris@0: Chris@0: Clear the cache and the existing sessions by running: Chris@0: rake tmp:cache:clear Chris@0: rake tmp:sessions:clear Chris@0: Chris@0: 8. Restart the application server (e.g. mongrel, thin, passenger) Chris@0: Chris@0: 9. Finally go to "Administration -> Roles & permissions" to check/set permissions Chris@0: for new features, if any Chris@0: Chris@0: == Notes Chris@0: Chris@441: * Rails 2.3.11 is required for versions 1.2.x. Chris@0: Chris@0: == References Chris@0: Chris@0: * http://www.redmine.org/wiki/redmine/RedmineUpgrade