Dreamhost FastCGI

Published December 16, 2005

Reading time: 0 minutes.

Dreamhost servers were killing off my new application and so I did some digging and found this great hack by a nice fellow named Gary on the Dreamhost forums.

Modify ruby/gems/1.8/gems/rails-0.14.3/lib/fcgi_handler.rb or ruby/gems/1.8/gems/rails-1.0/lib/fcgi_handler.rb:

def  exit_now_handler(signal)
     dispatcher_log :info, "asked to terminate immediately"
     ## force to restart
     dispatcher_log :info, "but we will restart"

I don't have comments enabled on this site, but I'd love to talk with you about this article on Twitter. Follow me and say hi.