Install the open-source project management software Redmine in Ubuntu

Source: Internet
Author: User
Tags redmine ruby on rails
Recently, I want to configure a Trac on my machine to manage my own small projects, but the results are disappointing. Trac depends on countless Python libraries and must be outdated Python2.4, however, my default installation of javastugutsy is Python2.5. It is really uncomfortable to install two python programs. Fortunately, when looking for the Trac dependency library, I found Redmine, an open-source project developed based on RubyOnRails.

Recently, I want to configure a Trac on my machine to manage my own small projects, but the results are disappointing. Trac depends on countless Python libraries and must be outdated with Python 2.4, in my Ubuntu Gutsy, Python2.5 is installed by default. It is really uncomfortable to install two python programs.
Fortunately, when looking for the Trac dependency library, I found Redmine, an open-source project management software developed based On Ruby On Rails, not only does it not have a wide variety of dependencies, in addition, the interface is refreshing and the functions are complete. It is important that the database can be used after simple configuration, which is the best choice for Ruby/Rails enthusiasts.

The following is an introduction to Redmine installation. Because Redmine is based on the Rails framework, you can refer to a wide range of Rails books and documents for detailed configuration.

1. Configure the runtime environment
Download the Remine source code package from Redmine's nest www.redmine.org and decompress it to a directory, which is assumed to be "redmine ".
Make sure that the Ruby interpreter is installed on the machine. Ubuntu/Debian Linux users can install ruby rubygems using sudo apt-get install. Redmine itself comes with the MySQL driver. If you need to use other databases, You can manually install it through gem or apt-get, here, I personally strongly recommend that you use Gem instead of the package management system that comes with Linux to install Ruby-related software packages. For example, if I'm using SQLite3, use the apt-get install sqlite3 libsqlite3-ruby command to install it.

2. Configure the database
Open the redmine/db/database. yml. example file in the text editor and modify the configuration in the production Section according to your actual situation. For example, to use SQLite3 as the database backend, we modify it as follows:

Production
Adapter: sqlite3
Database: db/redmine. sqlite3 # The database is the/redmine/db/redmine. sqlite3 file.
Host: localhost
Username:
Password:

After the modification, rename the database. yml. example file to database. yml, change the current directory to redmine, and run the following command:
Rake db: migrate RAILS_ENV = "production"
Rake redmine: load_default_data RAILS_ENV = "production"
This will automatically create databases and related tables, and set Redmine to the default state. So far, our Redmine is ready to run.

3. Run
As a simple local project management program, here I use the WEBRick HTTP server that comes with Ruby. users who need to use production-level servers such as Apache can refer to relevant Rails documents for configuration.
Make sure that the current directory is redmine and simply execute the ruby script/server-e production command to start Redmine.
Now open http: // localhost: 3000 in your browser and you will be able to see the Redmine homepage immediately. What are you waiting for? Log On with the username admin and password admin!

Related Article

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.