To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / doc / UPGRADING @ 1298:4f746d8966dd

History | View | Annotate | Download (2.91 KB)

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