view doc/UPGRADING @ 599:251b380117ce feature_227

Introduce a new latest_downloads plugin to manage active and shortcut for attachments. Add a table for attachment active/shortcut data. Move existing active-handler code into the new plugin (but still using the "old" active column in the attachments table). Note the files_controller stuff doesn't actually work here.
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Tue, 16 Aug 2011 17:01:19 +0100
parents cbce1fd3b1b7
children cbb26bc654de
line wrap: on
line source
== Redmine upgrade

Redmine - project management software
Copyright (C) 2006-2011  Jean-Philippe Lang
http://www.redmine.org/


== Upgrading

1. Uncompress the program archive in a new directory

2. Copy your database settings (RAILS_ROOT/config/database.yml)
   and your configuration file (RAILS_ROOT/config/configuration.yml)
   into the new config directory
   Note: before Redmine 1.2, SMTP configuration was stored in
   config/email.yml. It should now be stored in config/configuration.yml. 

3. Copy the RAILS_ROOT/files directory content into your new installation
   This directory contains all the attached files.

4. Copy the folders of the installed plugins and themes into new installation

5. Generate a session store secret
   
   Redmine stores session data in cookies by default, which requires
   a secret to be generated. Under the new application directory run:
     rake generate_session_store
   
   DO NOT REPLACE OR EDIT ANY OTHER FILES.

6. Migrate your database

   If you are upgrading to Rails 2.3.11 as part of this migration, you
   need to upgrade the plugin migrations before running the plugin migrations
   using:
     rake db:migrate:upgrade_plugin_migrations RAILS_ENV="production"
   
   Please make a backup before doing this! Under the new application
   directory run:
     rake db:migrate RAILS_ENV="production"
   
   If you have installed any plugins, you should also run their database
   migrations using:
     rake db:migrate_plugins RAILS_ENV="production"
   
7. Clean up
   
   Clear the cache and the existing sessions by running:
     rake tmp:cache:clear
     rake tmp:sessions:clear

8. Restart the application server (e.g. mongrel, thin, passenger)

9. Finally go to "Administration -> Roles & permissions" to check/set permissions
   for new features, if any

== Notes

* Rails 2.3.11 is required for versions 1.2.x.

== References

* http://www.redmine.org/wiki/redmine/RedmineUpgrade