cruisecontrol.rb icon indicating copy to clipboard operation
cruisecontrol.rb copied to clipboard

Server does not stop using daemon/cruise stop

Open kpumuk opened this issue 14 years ago • 0 comments

There are several related issues:

  1. daemon/daemon_helper.rb requires mongrel to be installed system wide, but then it starts server, which uses Bundler, and there is no mongrel in Gemfile. So Webrick is always being used.
  2. mongrel_rails is not able to stop Webrick server for some reason.

To fix the issue, it's necessary to do following:

  1. Do not load rubygems in daemon_helper.rb, and do not require mongrel from this file. It will improve startup time, and fix unnecessary requirement on system-wide mongrel gem.
  2. Add mongrel to Gemfile, so CruiseControl::Init will use it.

This will fix things in Ruby 1.8, but I have no idea how other versions of Ruby will behave.

kpumuk avatar Jun 18 '11 19:06 kpumuk