Build the ROR development environment in windows and install the open source project management software redmine

Source: Internet
Author: User
Tags redmine

Rails is generally used in Linux environments, so it is difficult to build this environment. I searched some documents online and integrated online resources to share them. There is an introduction to redmine and dotproject project management tools on the Internet: http:/developer.51cto.com/art/200909/154243.htm

In Windows, a very simple setup method is to build an environment using installrails, which integrates Ruby, rails, Apache, and MySQL.

The following steps deploy the environment:

1. Download installrails and the latest version. The current version is 2.0.

2. decompress the package to a local directory. (Note: The path cannot contain spaces)

3.open installrails.exe in the decompressed directory.
(Note: The default port number of Apache is 80. If IIS also starts this step, it may conflict. If Apache cannot start, you need to modify the port number of Apache,
Or stop it in IIS. There are many such solutions online .)

(Figure 1)

4. Select Rails Applications> open Ruby Console window from the menu (I icon) on the left.
(Note: the command line will be opened here later)

5. Enter the following command in the pop-up command line to update RUBY: Gem update -- System

6. Run this command to update rails: Gem update.

Now the environment is complete.

Next we will install the project management software redmine:

1. Download redmine and decompress it.

2. Copy the redmine compressed folder to the rails_apps directory in the installrails directory.

3. Start installrails.

4. Select configure-> database (via phpMyAdmin) in the menu (I icon) on the left to open phpMyAdmin,

5. Create a database in phpMyAdmin: Create Database redmine Character Set utf8;

6. Rename the database. yml. Example file in the config directory of the redmine file to database. yml.

7. Run rake DB: migrate rails_env = "production" on the command line of the redmine project to create a database. After that, 43 tables should be created.

8. Execute rake redmine: load_default_data rails_env = "production" on the command line to indicate that the running environment of the current project is production. A prompt is displayed in the middle, so select Zh.

9. In the menu (I icon) on the left, choose Rails Applications> Manage Rails Applications. The following page is displayed, and click Refresh list to update the folder in the rails_apps directory.
(Figure 2)
10. we checked in front of redmine and then clicked configure startup mode. In the pop-up exit, we can modify the running mode and port number ), change the running mode to 'production ', and the port number can be changed to the one you need, such as port 8080. After modification, click OK.

11. still in Figure 2, check in front of redmine and click Start with mongrel. a command line window will pop up. If a configuration is correct, the command line prompts you to stop the project by pressing CTRL + C. In this way, the project is successfully started.

12. Now, the redmine project is successfully started. Access address in the browser: http: // localhost: 8080/. Use the admin user to log on. The password is also Admin. After logon, the page is displayed in English again, here you need to set personal users and change the language to Chinese.

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.