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