2007-11-04 13:19:42 +00:00
|
|
|
== Redmine installation
|
|
|
|
|
|
|
|
|
|
Redmine - project management software
|
2024-02-26 22:55:54 +00:00
|
|
|
Copyright (C) 2006- Jean-Philippe Lang
|
2024-11-03 09:50:55 +00:00
|
|
|
https://www.redmine.org/
|
2007-11-04 13:19:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
== Requirements
|
|
|
|
|
|
2025-04-20 07:55:11 +00:00
|
|
|
* Ruby 3.2, 3.3, 3.4
|
2010-07-18 15:19:04 +00:00
|
|
|
|
2008-07-04 18:03:43 +00:00
|
|
|
* A database:
|
2023-11-26 13:20:27 +00:00
|
|
|
* MySQL (tested with MySQL 8)
|
|
|
|
|
* PostgreSQL (tested with PostgreSQL 14)
|
2017-07-30 18:25:44 +00:00
|
|
|
* SQLite3 (tested with SQLite 3.11)
|
2013-03-11 18:12:42 +00:00
|
|
|
* SQLServer (tested with SQLServer 2012)
|
2007-11-04 13:19:42 +00:00
|
|
|
|
|
|
|
|
Optional:
|
2015-08-12 12:54:17 +00:00
|
|
|
* SCM binaries (e.g. svn, git...), for repository browsing (must be
|
|
|
|
|
available in PATH)
|
2012-02-19 14:30:46 +00:00
|
|
|
* ImageMagick (to enable Gantt export to png images)
|
2007-11-04 13:19:42 +00:00
|
|
|
|
2022-03-20 21:20:28 +00:00
|
|
|
Supported browsers:
|
2022-03-20 21:21:41 +00:00
|
|
|
The current version of Firefox, Safari, Chrome, Chromium and Microsoft Edge.
|
2022-03-20 21:20:28 +00:00
|
|
|
|
2007-11-04 13:19:42 +00:00
|
|
|
== Installation
|
|
|
|
|
|
|
|
|
|
1. Uncompress the program archive
|
2010-07-18 15:19:04 +00:00
|
|
|
|
2013-01-19 14:45:39 +00:00
|
|
|
2. Create an empty utf8 encoded database: "redmine" for example
|
|
|
|
|
|
|
|
|
|
3. Configure the database parameters in config/database.yml
|
2019-01-19 10:49:51 +00:00
|
|
|
for the "production" environment (default database is MySQL)
|
2013-01-19 14:45:39 +00:00
|
|
|
|
|
|
|
|
4. Install the required gems by running:
|
2012-02-19 14:30:46 +00:00
|
|
|
bundle install --without development test
|
|
|
|
|
|
2015-08-12 12:54:17 +00:00
|
|
|
Only the gems that are needed by the adapters you've specified in your
|
|
|
|
|
database configuration file are actually installed (eg. if your
|
|
|
|
|
config/database.yml uses the 'mysql2' adapter, then only the mysql2 gem
|
|
|
|
|
will be installed). Don't forget to re-run `bundle install` when you
|
|
|
|
|
change config/database.yml for using other database adapters.
|
2013-03-11 18:12:42 +00:00
|
|
|
|
2015-08-12 12:54:17 +00: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.
|
2012-04-06 11:16:58 +00:00
|
|
|
It will be loaded automatically when running `bundle install`.
|
|
|
|
|
|
2012-02-19 14:30:46 +00:00
|
|
|
5. Generate a session store secret
|
2021-04-03 07:12:43 +00:00
|
|
|
|
2009-02-21 11:13:37 +00:00
|
|
|
Redmine stores session data in cookies by default, which requires
|
2010-07-18 15:19:04 +00:00
|
|
|
a secret to be generated. Under the application main directory run:
|
2014-11-11 21:13:18 +00:00
|
|
|
bundle exec rake generate_secret_token
|
2010-07-18 15:19:04 +00:00
|
|
|
|
2015-04-25 08:13:23 +00:00
|
|
|
Alternatively, you can store this secret in config/secrets.yml:
|
2024-11-03 09:50:55 +00:00
|
|
|
https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#config-secrets-yml
|
2015-04-25 08:13:23 +00:00
|
|
|
|
2024-12-11 00:03:41 +00:00
|
|
|
6. Compile assets (optional)
|
|
|
|
|
|
|
|
|
|
Compile the assets such as stylesheets, javascripts and images into the public/assets
|
|
|
|
|
directory for web server delivery.
|
|
|
|
|
|
|
|
|
|
By default, Redmine automatically recompiles assets in production mode when the application starts.
|
|
|
|
|
This behavior can be controlled using the "config.assets.redmine_detect_update" flag in the configuration file.
|
|
|
|
|
|
|
|
|
|
To manually compile assets or if automatic compilation is disabled:
|
|
|
|
|
|
|
|
|
|
using:
|
|
|
|
|
bundle exec rake assets:precompile RAILS_ENV="production"
|
2025-04-09 02:04:59 +00:00
|
|
|
|
2024-12-11 00:03:41 +00:00
|
|
|
If deploying to a sub-uri, set the relative URL root as follows:
|
|
|
|
|
bundle exec rake assets:precompile RAILS_ENV="production" RAILS_RELATIVE_URL_ROOT=/sub-uri
|
2025-04-09 02:04:59 +00:00
|
|
|
|
2024-12-11 00:03:41 +00:00
|
|
|
If you experience issues with missing assets in the browser, try
|
|
|
|
|
removing the public/assets directory before re-running the precompile:
|
|
|
|
|
bundle exec rake assets:clobber RAILS_ENV="production"
|
|
|
|
|
|
|
|
|
|
7. Create the database structure
|
2021-04-03 07:12:43 +00:00
|
|
|
|
2010-07-18 15:19:04 +00:00
|
|
|
Under the application main directory run:
|
2014-11-11 21:13:18 +00:00
|
|
|
bundle exec rake db:migrate RAILS_ENV="production"
|
2021-04-03 07:12:43 +00:00
|
|
|
|
2010-07-18 15:19:04 +00:00
|
|
|
It will create all the tables and an administrator account.
|
2008-06-15 12:25:48 +00:00
|
|
|
|
2024-12-11 00:03:41 +00:00
|
|
|
8. Setting up permissions (Windows users have to skip this section)
|
2021-04-03 07:12:43 +00:00
|
|
|
|
2010-07-18 15:19:04 +00:00
|
|
|
The user who runs Redmine must have write permission on the following
|
2024-02-07 20:42:50 +00:00
|
|
|
subdirectories: files, log, tmp & public/assets.
|
2021-04-03 07:12:43 +00:00
|
|
|
|
2010-07-18 15:19:04 +00:00
|
|
|
Assuming you run Redmine with a user named "redmine":
|
2024-02-07 20:42:50 +00:00
|
|
|
sudo chown -R redmine:redmine files log tmp public/assets
|
|
|
|
|
sudo chmod -R 755 files log tmp public/assets
|
2008-06-15 12:25:48 +00:00
|
|
|
|
2024-12-11 00:03:41 +00:00
|
|
|
9. Test the installation by running the Puma web server
|
2021-04-03 07:12:43 +00:00
|
|
|
|
2010-07-18 15:19:04 +00:00
|
|
|
Under the main application directory run:
|
2015-02-19 19:02:11 +00:00
|
|
|
ruby bin/rails server -e production
|
2021-04-03 07:12:43 +00:00
|
|
|
|
2018-10-16 05:51:33 +00:00
|
|
|
Once Puma has started, point your browser to http://localhost:3000/
|
2010-07-18 15:19:04 +00:00
|
|
|
You should now see the application welcome page.
|
2007-11-04 13:19:42 +00:00
|
|
|
|
2024-12-11 00:03:41 +00:00
|
|
|
10. Use the default administrator account to log in:
|
2007-11-04 13:19:42 +00:00
|
|
|
login: admin
|
|
|
|
|
password: admin
|
2021-04-03 07:12:43 +00:00
|
|
|
|
2010-07-18 15:19:04 +00:00
|
|
|
Go to "Administration" to load the default configuration data (roles,
|
|
|
|
|
trackers, statuses, workflow) and to adjust the application settings
|
2007-11-04 13:19:42 +00:00
|
|
|
|
2023-11-26 13:20:27 +00:00
|
|
|
== Database server configuration
|
|
|
|
|
|
|
|
|
|
When using MySQL with Redmine 5.1.1 or later, it is necessary to change
|
|
|
|
|
the transaction isolation level from the default REPEATABLE READ to
|
|
|
|
|
READ_COMMITTED. To modify this setting, either change the database
|
|
|
|
|
configuration file or alter the settings on your MySQL server.
|
|
|
|
|
|
|
|
|
|
To set the transaction isolation level in the database configuration file,
|
|
|
|
|
add transaction_isolation variable as below:
|
|
|
|
|
|
|
|
|
|
production:
|
|
|
|
|
adapter: mysql2
|
|
|
|
|
database: redmine
|
|
|
|
|
host: localhost
|
|
|
|
|
[...]
|
|
|
|
|
variables:
|
|
|
|
|
transaction_isolation: "READ-COMMITTED"
|
|
|
|
|
|
|
|
|
|
More details can be found in https://www.redmine.org/projects/redmine/wiki/MySQL_configuration.
|
|
|
|
|
|
2010-07-18 15:19:04 +00:00
|
|
|
== SMTP server Configuration
|
2007-11-04 13:19:42 +00:00
|
|
|
|
2011-01-23 10:22:00 +00:00
|
|
|
Copy config/configuration.yml.example to config/configuration.yml and
|
|
|
|
|
edit this file to adjust your SMTP settings.
|
2010-07-18 15:19:04 +00:00
|
|
|
Do not forget to restart the application after any change to this file.
|
2008-07-04 18:55:45 +00:00
|
|
|
|
|
|
|
|
Please do not enter your SMTP settings in environment.rb.
|
2010-07-18 15:19:04 +00:00
|
|
|
|
|
|
|
|
== References
|
|
|
|
|
|
2025-05-02 09:39:38 +00:00
|
|
|
* https://www.redmine.org/projects/redmine/wiki/RedmineInstall
|
|
|
|
|
* https://www.redmine.org/projects/redmine/wiki/EmailConfiguration
|
|
|
|
|
* https://www.redmine.org/projects/redmine/wiki/RedmineSettings
|
|
|
|
|
* https://www.redmine.org/projects/redmine/wiki/RedmineRepositories
|
|
|
|
|
* https://www.redmine.org/projects/redmine/wiki/RedmineReceivingEmails
|
|
|
|
|
* https://www.redmine.org/projects/redmine/wiki/RedmineReminderEmails
|
|
|
|
|
* https://www.redmine.org/projects/redmine/wiki/RedmineLDAP
|