annotate .svn/pristine/94/94b0a87688b1d61b6fb66241d11ae9e0ee65fa3e.svn-base @ 1298:4f746d8966dd redmine_2.3_integration

Merge from redmine-2.3 branch to create new branch redmine-2.3-integration
author Chris Cannam
date Fri, 14 Jun 2013 09:28:30 +0100
parents 622f24f53b42
children
rev   line source
Chris@1295 1 == Redmine upgrade
Chris@1295 2
Chris@1295 3 Redmine - project management software
Chris@1295 4 Copyright (C) 2006-2013 Jean-Philippe Lang
Chris@1295 5 http://www.redmine.org/
Chris@1295 6
Chris@1295 7
Chris@1295 8 == Upgrading
Chris@1295 9
Chris@1295 10 1. Uncompress the program archive in a new directory
Chris@1295 11
Chris@1295 12 2. Copy your database settings (RAILS_ROOT/config/database.yml)
Chris@1295 13 and your configuration file (RAILS_ROOT/config/configuration.yml)
Chris@1295 14 into the new config directory
Chris@1295 15 Note: before Redmine 1.2, SMTP configuration was stored in
Chris@1295 16 config/email.yml. It should now be stored in config/configuration.yml.
Chris@1295 17
Chris@1295 18 3. Copy the RAILS_ROOT/files directory content into your new installation
Chris@1295 19 This directory contains all the attached files.
Chris@1295 20
Chris@1295 21 4. Copy the folders of the installed plugins and themes into new installation
Chris@1295 22 Plugins must be stored in the [redmine_root]/plugins directory
Chris@1295 23 Themes must be stored in the [redmine_root]/public/themes directory
Chris@1295 24
Chris@1295 25 WARNING: plugins from your previous Redmine version may not be compatible
Chris@1295 26 with the Redmine version you're upgrading to.
Chris@1295 27
Chris@1295 28 5. Install the required gems by running:
Chris@1295 29 bundle install --without development test
Chris@1295 30
Chris@1295 31 If ImageMagick is not installed on your system, you should skip the installation
Chris@1295 32 of the rmagick gem using:
Chris@1295 33 bundle install --without development test rmagick
Chris@1295 34
Chris@1295 35 Only the gems that are needed by the adapters you've specified in your database
Chris@1295 36 configuration file are actually installed (eg. if your config/database.yml
Chris@1295 37 uses the 'mysql2' adapter, then only the mysql2 gem will be installed). Don't
Chris@1295 38 forget to re-run `bundle install` when you change config/database.yml for using
Chris@1295 39 other database adapters.
Chris@1295 40
Chris@1295 41 If you need to load some gems that are not required by Redmine core (eg. fcgi),
Chris@1295 42 you can create a file named Gemfile.local at the root of your redmine directory.
Chris@1295 43 It will be loaded automatically when running `bundle install`.
Chris@1295 44
Chris@1295 45 6. Generate a session store secret
Chris@1295 46
Chris@1295 47 Redmine stores session data in cookies by default, which requires
Chris@1295 48 a secret to be generated. Under the new application directory run:
Chris@1295 49 rake generate_secret_token
Chris@1295 50
Chris@1295 51 DO NOT REPLACE OR EDIT ANY OTHER FILES.
Chris@1295 52
Chris@1295 53 7. Migrate your database
Chris@1295 54
Chris@1295 55 If you are upgrading to Rails 2.3.14 as part of this migration, you
Chris@1295 56 need to upgrade the plugin migrations before running the plugin migrations
Chris@1295 57 using:
Chris@1295 58 rake db:migrate:upgrade_plugin_migrations RAILS_ENV="production"
Chris@1295 59
Chris@1295 60 Please make a backup before doing this! Under the new application
Chris@1295 61 directory run:
Chris@1295 62 rake db:migrate RAILS_ENV="production"
Chris@1295 63
Chris@1295 64 If you have installed any plugins, you should also run their database
Chris@1295 65 migrations using:
Chris@1295 66 rake db:migrate_plugins RAILS_ENV="production"
Chris@1295 67
Chris@1295 68 8. Clear the cache and the existing sessions by running:
Chris@1295 69 rake tmp:cache:clear
Chris@1295 70 rake tmp:sessions:clear
Chris@1295 71
Chris@1295 72 9. Restart the application server (e.g. mongrel, thin, passenger)
Chris@1295 73
Chris@1295 74 10. Finally go to "Administration -> Roles & permissions" to check/set permissions
Chris@1295 75 for new features, if any
Chris@1295 76
Chris@1295 77 == References
Chris@1295 78
Chris@1295 79 * http://www.redmine.org/wiki/redmine/RedmineUpgrade