Building redmine-0.9.3

Source: Internet
Author: User
Tags svn client redmine ruby on rails

Redmine is really a good project management software, the company is now using the version is redmine-0.8.0, but some functions in this version can not be reflected, had to upgrade to the latest version of the redmine-0.9.3, online for a long time, finally, I found a real article. Below I will record it and share it with everybody:

 

Redmine Overview
A web-based project management software developed in ruby is especially suitable for small teams or small software companies for project management.
* Multi-project support
* Role-based flexible access control
* Flexible problem Tracking System
* Gantt chart and calendar
* News, documents, and files management
* Subscription and email notification
* Set an independent wiki for each project
* Set an independent discussion board for each project
* Simple time tracking
* Added custom attributes for problems, projects, and users.
* Integrated version management system (SVN, CVS, mercurial, bazaar and darcs)
* Supports multiple LDAP authentication methods
* User Registration is supported.
* Multi-language support
* Multi-database support

Online Demo by redmine: http://demo.redmine.org

Please note that the online demo system provided by redmine cannot always be online. This demo system uses the latest version of redmine's SVN repository, so it may contain new features and errors not found in the downloaded release.

 

Redmine Installation Guide
1. System Requirements

Ruby 1.8.7 on Rails 2.3.5
Database (refer to the following list of compatible databases)
Optional:

SVN client (Version no less than 1.3), used for version library browsing (must be configured in your path settings)
Rmagick (used to output a Gantt chart to a PNG Image File)
Supported databases:

MySQL 4 or later (recommended)
The text has been deployed in advance using yum. The method is as follows:
Yum install-y MySQL mysql-server mysql-devel
PostgreSQL 8 (version 8.3 is not fully tested)
SQLite 3

2. Ruby on Rails deployment

Mkdir/opt/source
CD/opt/source
Wget http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7.tar.gz
Tar zxvf ruby-1.8.7.tar.gz
CD ruby-1.8.7
./Configure
Make & make install
Cd ext/zlib
Ruby extconf. RB -- With-zlib-include =/usr/include -- With-zlib-Lib =/usr/lib
CD ../../
Make & make install
 
CD/opt/source
Wget http://production.cf.rubygems.org/rubygems/rubygems-1.3.6.tgz
Tar zxvf rubygems-1.3.6.tgz
CD rubygems-1.3.6
Ruby setup. Rb
 
Gem install rails-V = 2.3.5

 

3. Check the Ruby on Rails status
Ruby-V
Ruby 1.8.7 (patchlevel 0) [i686-linux]

Gem list
* ** Local gems ***

Actionmailer (2.3.5)
Actionpack (2.3.5)
Activerecord (2.3.5)
Activeresource (2.3.5)
Activesupport (2.3.5)
MySQL (2.8.1)
Rack (1.0.1)
Rails (2.3.5)
Rake (0.8.7)

4. Database settings (take MYSQL as an example)
Start MySQL database

/Etc/init. d/mysqld start
Create a database and Set permissions

Mysql-u root-P
Enter password:
 
Mysql> Create Database redmine Character Set utf8;
Mysql> grant all on redmine. * To 'redmine '@ 'localhost' identified by 'redmine ';
Mysql> flush privileges;

 

5. Prepare the redmine Environment and Database

CD/opt/source
Wget http://rubyforge.org/frs/download.php/69449/redmine-0.9.3.tar.gz
Tar zxvf redmine-0.9.3.tar.gz
Music redmine-0.9.3/opt/redmine
CD/opt/redmine/config
CP database. yml. Example database. yml
VI database. yml
Production:
Adapter: MySQL
Database: redmine
HOST: localhost
Username: redmine
Password: redmine
Encoding: utf8

 

Key steps:

Run the following command in the root directory of the program to create the database structure:

cd /opt/redmine/
RAILS_ENV=production rake config/initializers/session_store.rb
rake db:migrate RAILS_ENV="production"

Run the following command to import default configuration data to the database:

Rake redmine: load_default_data rails_env = "production" (if it was a previous database-this step can be omitted)
This step is optional, but it is strongly recommended
You can also enter your configuration parameters step by step from the beginning. This command imports default roles, trace tags, statuses, workflows, and enumeration values.

6. Run the webrick server to test the installation.

 
ruby script/server -e production

When webrick is started, use a browser to access http: // localhost: 3000/
You will see the welcome page of the system.
Log On with the default username and password:
* User name: Admin
* Password: Admin

 

 

 

Supplemental appendix to redmine

1. redmine backup method:
Redmine backups should include: * Data (saved in redmine database) * Attachments (saved in redmine installation directory
Files directory)

The following is a simple script program that can be backed up every day (assuming you use the MySQL database ):

cat >> /var/spool/cron/root << EOF
# Redmine Database
0 1 * * * /usr/bin/mysqldump -u redmine -p redmine redmine | gzip > /opt/backup/db/redmine_`date +%y_%m_%d`.gz
# Redmine Attachments
30 1 * * * rsync -a /opt/redmine/files /opt/backup/files
EOF

2. SMTP server configuration

In the config/environment. RB file, you can set the parameters of your SMTP server:

* Config. action_mailer.smtp_settings: SMTP server configuration
*
Config. action_mailer.m_m_deliveries: Set to false to disable email sending.

After modifying this file, restart the server.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.