RedmineInstall » History » Version 5
Thomas Lecavelier, 2007-12-22 14:14
New version of rails... Redmine is Rails 2.0 aware.
1 | 1 | Jean-Philippe Lang | h1. Installing Redmine |
---|---|---|---|
2 | |||
3 | {{>TOC}} |
||
4 | |||
5 | h2. Requirements |
||
6 | |||
7 | 5 | Thomas Lecavelier | * Ruby on Rails 1.2.6 or 2.0.2 |
8 | 1 | Jean-Philippe Lang | * A database (see compatibility below) |
9 | |||
10 | Optional: |
||
11 | |||
12 | * SVN binaries (>= 1.3), for repository browsing (must be available in your PATH) |
||
13 | * RMagick (Gantt export to a png image) |
||
14 | |||
15 | Supported databases: |
||
16 | |||
17 | * MySQL (recommended) |
||
18 | * PostgreSQL |
||
19 | * SQLite |
||
20 | |||
21 | h2. Installation |
||
22 | |||
23 | 1. [[Download]] and extract the archive or checkout Redmine. |
||
24 | |||
25 | 2. Create an empty database: "redmine" for example |
||
26 | |||
27 | 3 | Jean-Philippe Lang | 3. Copy @config/database.example.yml@ to @config/database.yml@ and edit this file in order to configure your database settings for "production" environment. |
28 | 1 | Jean-Philippe Lang | |
29 | 3 | Jean-Philippe Lang | Example for a MySQL database: |
30 | 1 | Jean-Philippe Lang | |
31 | 3 | Jean-Philippe Lang | production: |
32 | adapter: mysql |
||
33 | database: redmine |
||
34 | host: localhost |
||
35 | username: bduser |
||
36 | password: bdpasswd |
||
37 | |||
38 | 4. Create the database structure, by running the following command under the application root directory: |
||
39 | |||
40 | 1 | Jean-Philippe Lang | rake db:migrate RAILS_ENV="production" |
41 | |||
42 | It will create tables and an administrator account. |
||
43 | |||
44 | 3 | Jean-Philippe Lang | 5. Insert default configuration data in database, by running the following command: |
45 | 1 | Jean-Philippe Lang | |
46 | rake redmine:load_default_data RAILS_ENV="production" |
||
47 | |||
48 | 4 | Jean-Philippe Lang | This step is optional but *highly recommended*, as you can define your own configuration from scratch. It will load default roles, trackers, statuses, workflows and enumerations. |
49 | 1 | Jean-Philippe Lang | |
50 | 6. Test the installation by running WEBrick web server: |
||
51 | |||
52 | ruby script/server -e production |
||
53 | |||
54 | Once WEBrick has started, point your browser to http://localhost:3000/. You should now see the application welcome page. |
||
55 | |||
56 | 7. Use default administrator account to log in: |
||
57 | |||
58 | * login: admin |
||
59 | * password: admin |
||
60 | |||
61 | 8. You can go to “Admin → Settings” to modify application settings. |
||
62 | |||
63 | h2. SMTP server Configuration |
||
64 | |||
65 | In config/environment.rb, you can set parameters for your SMTP server: |
||
66 | |||
67 | * config.action_mailer.smtp_settings: SMTP server configuration |
||
68 | * config.action_mailer.perform_deliveries: set to false to disable mail delivering |
||
69 | |||
70 | Don’t forget to restart the application after any change. |