RE: Re: Production deployment on Dreamhost?

Another solution that works the same way without the need to freeze gems
and hack the core.


— snip -----

I changed my dispatch.fcgi to this. Something is sending the fastcgi
processes a kill ‘TERM’ after five minutes. This makes the rails app
ignore it and the fcgi process stays running.

require File.dirname(FILE) + “/…/config/environment”
require ‘fcgi_handler’

class MyRailsFCGIHandler < RailsFCGIHandler
‘TERM’ => :exit_now,

def exit_now_handler(signal)
dispatcher_log :info, “ignoring request to terminate immediately”

MyRailsFCGIHandler.process! nil, 50

— snip ------

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs