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"
     restart_handler(signal)
     #exit
end

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


Liked this? I have a newsletter.