2007-11-04 16:19:42 +03:00
|
|
|
== Redmine installation
|
|
|
|
|
|
|
|
Redmine - project management software
|
2013-01-12 13:29:31 +04:00
|
|
|
Copyright (C) 2006-2013 Jean-Philippe Lang
|
2007-11-04 16:19:42 +03:00
|
|
|
http://www.redmine.org/
|
|
|
|
|
|
|
|
|
|
|
|
== Requirements
|
|
|
|
|
2012-02-25 17:26:51 +04:00
|
|
|
* Ruby 1.8.7, 1.9.2 or 1.9.3
|
2012-02-19 18:30:46 +04:00
|
|
|
* RubyGems
|
|
|
|
* Bundler >= 1.0.21
|
2010-07-18 19:19:04 +04:00
|
|
|
|
2008-07-04 22:03:43 +04:00
|
|
|
* A database:
|
2011-05-30 20:39:33 +04:00
|
|
|
* MySQL (tested with MySQL 5.1)
|
2012-09-16 16:42:48 +04:00
|
|
|
* PostgreSQL (tested with PostgreSQL 9.1)
|
2011-05-30 20:39:33 +04:00
|
|
|
* SQLite3 (tested with SQLite 3.6)
|
2007-11-04 16:19:42 +03:00
|
|
|
|
|
|
|
Optional:
|
2012-02-19 18:30:46 +04:00
|
|
|
* SCM binaries (e.g. svn, git...), for repository browsing (must be available in PATH)
|
|
|
|
* ImageMagick (to enable Gantt export to png images)
|
2007-11-04 16:19:42 +03:00
|
|
|
|
|
|
|
== Installation
|
|
|
|
|
|
|
|
1. Uncompress the program archive
|
2010-07-18 19:19:04 +04:00
|
|
|
|
2012-02-19 18:30:46 +04:00
|
|
|
2. Install the required gems by running:
|
|
|
|
bundle install --without development test
|
|
|
|
|
|
|
|
If ImageMagick is not installed on your system, you should skip the installation
|
|
|
|
of the rmagick gem using:
|
|
|
|
bundle install --without development test rmagick
|
|
|
|
|
2012-04-06 15:16:58 +04:00
|
|
|
If you need to load some gems that are not required by Redmine core (eg. fcgi),
|
|
|
|
you can create a file named Gemfile.local at the root of your redmine directory.
|
|
|
|
It will be loaded automatically when running `bundle install`.
|
|
|
|
|
2012-02-19 18:30:46 +04:00
|
|
|
3. Create an empty utf8 encoded database: "redmine" for example
|
2007-11-04 16:19:42 +03:00
|
|
|
|
2012-02-19 18:30:46 +04:00
|
|
|
4. Configure the database parameters in config/database.yml
|
2012-09-16 16:42:48 +04:00
|
|
|
for the "production" environment (default database is MySQL and ruby1.8)
|
|
|
|
|
|
|
|
If you're running Redmine with MySQL and ruby1.9, replace the adapter name
|
|
|
|
with `mysql2`
|
2007-11-04 16:19:42 +03:00
|
|
|
|
2012-02-19 18:30:46 +04:00
|
|
|
5. Generate a session store secret
|
2010-07-18 19:19:04 +04:00
|
|
|
|
2009-02-21 14:13:37 +03:00
|
|
|
Redmine stores session data in cookies by default, which requires
|
2010-07-18 19:19:04 +04:00
|
|
|
a secret to be generated. Under the application main directory run:
|
2012-05-12 17:14:53 +04:00
|
|
|
rake generate_secret_token
|
2010-07-18 19:19:04 +04:00
|
|
|
|
2012-02-19 18:30:46 +04:00
|
|
|
6. Create the database structure
|
2010-02-19 21:52:34 +03:00
|
|
|
|
2010-07-18 19:19:04 +04:00
|
|
|
Under the application main directory run:
|
|
|
|
rake db:migrate RAILS_ENV="production"
|
2010-02-19 21:52:34 +03:00
|
|
|
|
2010-07-18 19:19:04 +04:00
|
|
|
It will create all the tables and an administrator account.
|
2008-06-15 16:25:48 +04:00
|
|
|
|
2012-02-19 18:30:46 +04:00
|
|
|
7. Setting up permissions (Windows users have to skip this section)
|
2010-07-18 19:19:04 +04:00
|
|
|
|
|
|
|
The user who runs Redmine must have write permission on the following
|
2012-02-19 18:30:46 +04:00
|
|
|
subdirectories: files, log, tmp & public/plugin_assets.
|
2010-07-18 19:19:04 +04:00
|
|
|
|
|
|
|
Assuming you run Redmine with a user named "redmine":
|
|
|
|
sudo chown -R redmine:redmine files log tmp public/plugin_assets
|
|
|
|
sudo chmod -R 755 files log tmp public/plugin_assets
|
2008-06-15 16:25:48 +04:00
|
|
|
|
2012-02-19 18:30:46 +04:00
|
|
|
8. Test the installation by running the WEBrick web server
|
2010-07-18 19:19:04 +04:00
|
|
|
|
|
|
|
Under the main application directory run:
|
2012-05-15 02:17:57 +04:00
|
|
|
ruby script/rails server -e production
|
2010-07-18 19:19:04 +04:00
|
|
|
|
2007-11-04 16:19:42 +03:00
|
|
|
Once WEBrick has started, point your browser to http://localhost:3000/
|
2010-07-18 19:19:04 +04:00
|
|
|
You should now see the application welcome page.
|
2007-11-04 16:19:42 +03:00
|
|
|
|
2012-02-19 18:30:46 +04:00
|
|
|
9. Use the default administrator account to log in:
|
2007-11-04 16:19:42 +03:00
|
|
|
login: admin
|
|
|
|
password: admin
|
|
|
|
|
2010-07-18 19:19:04 +04:00
|
|
|
Go to "Administration" to load the default configuration data (roles,
|
|
|
|
trackers, statuses, workflow) and to adjust the application settings
|
2007-11-04 16:19:42 +03:00
|
|
|
|
2010-07-18 19:19:04 +04:00
|
|
|
== SMTP server Configuration
|
2007-11-04 16:19:42 +03:00
|
|
|
|
2011-01-23 13:22:00 +03:00
|
|
|
Copy config/configuration.yml.example to config/configuration.yml and
|
|
|
|
edit this file to adjust your SMTP settings.
|
2010-07-18 19:19:04 +04:00
|
|
|
Do not forget to restart the application after any change to this file.
|
2008-07-04 22:55:45 +04:00
|
|
|
|
|
|
|
Please do not enter your SMTP settings in environment.rb.
|
2010-07-18 19:19:04 +04:00
|
|
|
|
|
|
|
== References
|
|
|
|
|
|
|
|
* http://www.redmine.org/wiki/redmine/RedmineInstall
|
|
|
|
* http://www.redmine.org/wiki/redmine/EmailConfiguration
|
|
|
|
* http://www.redmine.org/wiki/redmine/RedmineSettings
|
|
|
|
* http://www.redmine.org/wiki/redmine/RedmineRepositories
|
|
|
|
* http://www.redmine.org/wiki/redmine/RedmineReceivingEmails
|
|
|
|
* http://www.redmine.org/wiki/redmine/RedmineReminderEmails
|
|
|
|
* http://www.redmine.org/wiki/redmine/RedmineLDAP
|