Redmine running under mongrel as Windows Service

Source: Internet
Author: User
Tags redmine

Original article: https://sites.google.com/site/alensit/software-tools/redmine#TOC-Running-under-Mongrel

Tianchao LAN mighty, the original link may have to be opened through special means, please note.

First complete the redmine installation see http://www.cnblogs.com/fromchaos/archive/2011/09/19/2181755.html

 

1. Install mongrel. In the Command Prompt window, enter:

Gem install mongrel

Command Prompt window output:

Successfully installed gem_plugin-0.2.3

Successfully installed cgi_multipart_eof_fix-2.5.0

Successfully installed mongrel-1.1.5-x86-mingw32

3 gems installed

2. Go to the redmine installation directory.

CD redmine installation directory

Set rails_env = Production

Mongrel_rails start

3. problems may occur during login

Work und: Copy mongrel. Rb (https://gist.github.com/826692), patch_for_mongrel.rb and rails_6440_patch.rb to the \ config \ initializers folder under the redmine directory and restart mongrel_rails.

Reference: http://www.redmine.org/issues/7857

4. Install mongrel service,Install mongrel_service at a command prompt

Gem install mongrel_service

The version number is 0.4.0.

5. Install Windows Service

Mongrel_rails service: Install-N mongrel_redmine-d "Mongrel serving redmine on 3000"-P 3000-e production-C redmine installation directory

6. Start Windows Service

Net start mongrel_redmine

Configure Windows service to run automatically

SC config mongrel_redmine start = auto

Test:

Enter URL in the browser: http: // 127.0.0.1: 3000/

 

7. uninstall Windows Service

Mongrel_rails service: Remove-N mongrel_redmine

 

If the installation of Gem may take too long or fail due to the speed of the network, you can goHttp://rubygems.org/Download the gem and install it using gem-L.

Gem install gem name-l

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.