Dreamhost FastCGI
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
Thanks for reading
I don't have comments enabled on this site, but I'd love to talk with you about this article on BlueSky, Mastodon, Twitter, or LinkedIn. Follow me there and say hi.