Dreamhost FastCGI

December 15, 2005 by Brian in Ruby on Rails, Work

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

Comments

Comments are closed.