##// END OF EJS Templates
Doc updated for Rails 2.3.14....
Jean-Philippe Lang -
r7729:89ce0d0aea88
parent child
Show More
@@ -1,97 +1,97
1 == Redmine installation
1 == Redmine installation
2
2
3 Redmine - project management software
3 Redmine - project management software
4 Copyright (C) 2006-2011 Jean-Philippe Lang
4 Copyright (C) 2006-2011 Jean-Philippe Lang
5 http://www.redmine.org/
5 http://www.redmine.org/
6
6
7
7
8 == Requirements
8 == Requirements
9
9
10 * Ruby 1.8.6 or 1.8.7
10 * Ruby 1.8.6 or 1.8.7
11
11
12 * RubyGems 1.3.7
12 * RubyGems 1.3.7
13
13
14 * Ruby on Rails 2.3.11 (official downloadable Redmine releases are packaged with
14 * Ruby on Rails 2.3.14 (official downloadable Redmine releases are packaged with
15 the appropriate Rails version)
15 the appropriate Rails version)
16
16
17 * Rack 1.1.0 gem
17 * Rack 1.1.2 gem
18
18
19 * Rake 0.8.3 gem
19 * Rake 0.9.2 gem
20
20
21 * I18n 0.4.2 gem
21 * I18n 0.4.2 gem
22
22
23 * A database:
23 * A database:
24 * MySQL (tested with MySQL 5.1)
24 * MySQL (tested with MySQL 5.1)
25 * PostgreSQL (tested with PostgreSQL 8.4)
25 * PostgreSQL (tested with PostgreSQL 8.4)
26 * SQLite3 (tested with SQLite 3.6)
26 * SQLite3 (tested with SQLite 3.6)
27
27
28 Optional:
28 Optional:
29 * SCM binaries (e.g. svn), for repository browsing (must be available in PATH)
29 * SCM binaries (e.g. svn), for repository browsing (must be available in PATH)
30 * RMagick (to enable Gantt export to png images)
30 * RMagick (to enable Gantt export to png images)
31 * Ruby OpenID Library >= version 2 (to enable OpenID support)
31 * Ruby OpenID Library >= version 2 (to enable OpenID support)
32
32
33 == Installation
33 == Installation
34
34
35 1. Uncompress the program archive
35 1. Uncompress the program archive
36
36
37 2. Create an empty database: "redmine" for example
37 2. Create an empty database: "redmine" for example
38
38
39 3. Configure the database parameters in config/database.yml
39 3. Configure the database parameters in config/database.yml
40 for the "production" environment (default database is MySQL)
40 for the "production" environment (default database is MySQL)
41
41
42 4. Generate a session store secret
42 4. Generate a session store secret
43
43
44 Redmine stores session data in cookies by default, which requires
44 Redmine stores session data in cookies by default, which requires
45 a secret to be generated. Under the application main directory run:
45 a secret to be generated. Under the application main directory run:
46 rake generate_session_store
46 rake generate_session_store
47
47
48 5. Create the database structure
48 5. Create the database structure
49
49
50 Under the application main directory run:
50 Under the application main directory run:
51 rake db:migrate RAILS_ENV="production"
51 rake db:migrate RAILS_ENV="production"
52
52
53 It will create all the tables and an administrator account.
53 It will create all the tables and an administrator account.
54
54
55 6. Setting up permissions (Windows users have to skip this section)
55 6. Setting up permissions (Windows users have to skip this section)
56
56
57 The user who runs Redmine must have write permission on the following
57 The user who runs Redmine must have write permission on the following
58 subdirectories: files, log, tmp & public/plugin_assets (create the last
58 subdirectories: files, log, tmp & public/plugin_assets (create the last
59 two if they are not yet present).
59 two if they are not yet present).
60
60
61 Assuming you run Redmine with a user named "redmine":
61 Assuming you run Redmine with a user named "redmine":
62 mkdir tmp public/plugin_assets
62 mkdir tmp public/plugin_assets
63 sudo chown -R redmine:redmine files log tmp public/plugin_assets
63 sudo chown -R redmine:redmine files log tmp public/plugin_assets
64 sudo chmod -R 755 files log tmp public/plugin_assets
64 sudo chmod -R 755 files log tmp public/plugin_assets
65
65
66 7. Test the installation by running the WEBrick web server
66 7. Test the installation by running the WEBrick web server
67
67
68 Under the main application directory run:
68 Under the main application directory run:
69 ruby script/server -e production
69 ruby script/server -e production
70
70
71 Once WEBrick has started, point your browser to http://localhost:3000/
71 Once WEBrick has started, point your browser to http://localhost:3000/
72 You should now see the application welcome page.
72 You should now see the application welcome page.
73
73
74 8. Use the default administrator account to log in:
74 8. Use the default administrator account to log in:
75 login: admin
75 login: admin
76 password: admin
76 password: admin
77
77
78 Go to "Administration" to load the default configuration data (roles,
78 Go to "Administration" to load the default configuration data (roles,
79 trackers, statuses, workflow) and to adjust the application settings
79 trackers, statuses, workflow) and to adjust the application settings
80
80
81 == SMTP server Configuration
81 == SMTP server Configuration
82
82
83 Copy config/configuration.yml.example to config/configuration.yml and
83 Copy config/configuration.yml.example to config/configuration.yml and
84 edit this file to adjust your SMTP settings.
84 edit this file to adjust your SMTP settings.
85 Do not forget to restart the application after any change to this file.
85 Do not forget to restart the application after any change to this file.
86
86
87 Please do not enter your SMTP settings in environment.rb.
87 Please do not enter your SMTP settings in environment.rb.
88
88
89 == References
89 == References
90
90
91 * http://www.redmine.org/wiki/redmine/RedmineInstall
91 * http://www.redmine.org/wiki/redmine/RedmineInstall
92 * http://www.redmine.org/wiki/redmine/EmailConfiguration
92 * http://www.redmine.org/wiki/redmine/EmailConfiguration
93 * http://www.redmine.org/wiki/redmine/RedmineSettings
93 * http://www.redmine.org/wiki/redmine/RedmineSettings
94 * http://www.redmine.org/wiki/redmine/RedmineRepositories
94 * http://www.redmine.org/wiki/redmine/RedmineRepositories
95 * http://www.redmine.org/wiki/redmine/RedmineReceivingEmails
95 * http://www.redmine.org/wiki/redmine/RedmineReceivingEmails
96 * http://www.redmine.org/wiki/redmine/RedmineReminderEmails
96 * http://www.redmine.org/wiki/redmine/RedmineReminderEmails
97 * http://www.redmine.org/wiki/redmine/RedmineLDAP
97 * http://www.redmine.org/wiki/redmine/RedmineLDAP
@@ -1,63 +1,63
1 == Redmine upgrade
1 == Redmine upgrade
2
2
3 Redmine - project management software
3 Redmine - project management software
4 Copyright (C) 2006-2011 Jean-Philippe Lang
4 Copyright (C) 2006-2011 Jean-Philippe Lang
5 http://www.redmine.org/
5 http://www.redmine.org/
6
6
7
7
8 == Upgrading
8 == Upgrading
9
9
10 1. Uncompress the program archive in a new directory
10 1. Uncompress the program archive in a new directory
11
11
12 2. Copy your database settings (RAILS_ROOT/config/database.yml)
12 2. Copy your database settings (RAILS_ROOT/config/database.yml)
13 and your configuration file (RAILS_ROOT/config/configuration.yml)
13 and your configuration file (RAILS_ROOT/config/configuration.yml)
14 into the new config directory
14 into the new config directory
15 Note: before Redmine 1.2, SMTP configuration was stored in
15 Note: before Redmine 1.2, SMTP configuration was stored in
16 config/email.yml. It should now be stored in config/configuration.yml.
16 config/email.yml. It should now be stored in config/configuration.yml.
17
17
18 3. Copy the RAILS_ROOT/files directory content into your new installation
18 3. Copy the RAILS_ROOT/files directory content into your new installation
19 This directory contains all the attached files.
19 This directory contains all the attached files.
20
20
21 4. Copy the folders of the installed plugins and themes into new installation
21 4. Copy the folders of the installed plugins and themes into new installation
22
22
23 5. Generate a session store secret
23 5. Generate a session store secret
24
24
25 Redmine stores session data in cookies by default, which requires
25 Redmine stores session data in cookies by default, which requires
26 a secret to be generated. Under the new application directory run:
26 a secret to be generated. Under the new application directory run:
27 rake generate_session_store
27 rake generate_session_store
28
28
29 DO NOT REPLACE OR EDIT ANY OTHER FILES.
29 DO NOT REPLACE OR EDIT ANY OTHER FILES.
30
30
31 6. Migrate your database
31 6. Migrate your database
32
32
33 If you are upgrading to Rails 2.3.11 as part of this migration, you
33 If you are upgrading to Rails 2.3.14 as part of this migration, you
34 need to upgrade the plugin migrations before running the plugin migrations
34 need to upgrade the plugin migrations before running the plugin migrations
35 using:
35 using:
36 rake db:migrate:upgrade_plugin_migrations RAILS_ENV="production"
36 rake db:migrate:upgrade_plugin_migrations RAILS_ENV="production"
37
37
38 Please make a backup before doing this! Under the new application
38 Please make a backup before doing this! Under the new application
39 directory run:
39 directory run:
40 rake db:migrate RAILS_ENV="production"
40 rake db:migrate RAILS_ENV="production"
41
41
42 If you have installed any plugins, you should also run their database
42 If you have installed any plugins, you should also run their database
43 migrations using:
43 migrations using:
44 rake db:migrate_plugins RAILS_ENV="production"
44 rake db:migrate_plugins RAILS_ENV="production"
45
45
46 7. Clean up
46 7. Clean up
47
47
48 Clear the cache and the existing sessions by running:
48 Clear the cache and the existing sessions by running:
49 rake tmp:cache:clear
49 rake tmp:cache:clear
50 rake tmp:sessions:clear
50 rake tmp:sessions:clear
51
51
52 8. Restart the application server (e.g. mongrel, thin, passenger)
52 8. Restart the application server (e.g. mongrel, thin, passenger)
53
53
54 9. Finally go to "Administration -> Roles & permissions" to check/set permissions
54 9. Finally go to "Administration -> Roles & permissions" to check/set permissions
55 for new features, if any
55 for new features, if any
56
56
57 == Notes
57 == Notes
58
58
59 * Rails 2.3.11 is required for versions 1.2.x.
59 * Rails 2.3.14 is required for versions 1.3.x.
60
60
61 == References
61 == References
62
62
63 * http://www.redmine.org/wiki/redmine/RedmineUpgrade
63 * http://www.redmine.org/wiki/redmine/RedmineUpgrade
General Comments 0
You need to be logged in to leave comments. Login now