Redmine development environment Creation notes

Source: Internet
Author: User
Tags redmine

The following steps are based on WINXP SP3 platform.

 

1 install instantrails2.0

 

2 update rails as following:

C:/InstantRails-2.0/Ruby> gem update -- System

C:/InstantRails-2.0/Ruby> gem update rails -- include-dependencies -- SourceHttp://gems.rubyonrails.org/

Note that you need to specify the source, or else, the update will timeout always.

By default, the rails version is 2.0.2, If you update rails successfully, version will be 2.3.3

 

C:/InstantRails-2.0/rails_apps/redmine> rails-V
Rails 2.3.3

If you see the error:

Error: Error installing rails:
Actionpack requires Rack (~~> 1.0.0, runtime)
Nothing to update

 

Then you need to install rack first, try to download rack from Website:

Http://rubyforge.org/frs? Group_id = 3113 & release_id = 42199

 

Say, you put it in C:/Rack/rack-1.0.0.gem

Cd c:/Rack

Gem install rack-1.0.0.gem

 

If you see error:

Error: Error installing rails:
Rails requires Rake (> = 0.8.3, runtime)

 

Then you need to install rake 0.8.3, try to download rake from Website:

Http://rake.rubyforge.org/

Cd c:/rake

Gem install rake-0.8.3.gem

 

3. Checkout redmine project stable version 0.9:

SVN Co http://redmine.rubyforge.org/svn/branches/0.9-stable redmine-0.9

 

4 copy redmine project to rails_apps directory, remove all hidden. SVN directories.

 

5 find files as * example, and rename all these files by remove "example" Word, For example, rename/InstantRails-2.0/rails_apps/redmine/config/database. yml. Example to database. yml

 

6 start instantrails.exe(Make sure MySQL server was started successfully)

 

7 create databases in MySQL for redmine:

Create Database redmine Character Set utf8;
Create Database redmine_development Character Set utf8;
Create Database redmine_test Character Set utf8;

 

8 imports data

CD remine

Rake DB: migrate rails_env = "development"
Rake load_default_data rails_env = "development"

 

If you see error like:

Missing the rails 2.3.5 gem. Please 'gem install-V = 2.3.5 rails ', update your RA
Ils_gem_version setting in config/environment. RB for the rails version you Do Ha
Ve installed, or comment out rails_gem_version to use the latest version install
Ed.

You need to modify enviroment. RB

# Specifies gem version of rails to use when vendor/rails is not present
Rails_gem_version = '2. 3.3 'Unless defined? Rails_gem_version

 

If you see error like:

"A key is required to write a cookie containing the session data. use config. action_controller.session = {: Key => "_ myapp_session",: Secret => "some secret phrase"} in config/environment. RB"

Please do as the suggestion, add following config to enviroment. RB file:

Config. action_controller.session = {: Key => "_ redmine_session",: Secret => "aa3be4f950045ce76451b8197bf06b6d "}

 

9 I-> Rails Applications-> Manage Rails Applications, choose redmine and start it with mongrel.

If everything is fine, you will see the following message on command line:

 

** Starting mongrel listening at 0.0.0.0: 3000
** Starting rails with development environment...
C:/instan ~ 1.0/Ruby/lib/Ruby/gems/1.8/gems/rails-2.3.3/lib/rails/gem_dependency.r
B: 119: Warning: GEM: dependency # version_requirements is deprecated and will be re
Moved on or after August 2010. Use # Requirement
** Rails loaded.
** Loading any rails specific gemplugins
** Signals ready. Int => stop (no restart ).
** Mongrel 1.1.2 available at 0.0.0.0: 3000
** Use CTRL-C to stop.

 

This means redmine product is running, you cocould visit just by clicking http: // localhost: 3000 /,

You will see web page the same style as the redmine project home page:

Http://www.redmine.org/

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.