Hi,

>> after_fork do |server, worker|
>>  defined?(ActiveRecord::Base) and ActiveRecord::Base.establish_connection
>> end

Not sure it would make a difference, but I always use this in the after_fork:

   defined?(ActiveRecord::Base) and ActiveRecord::Base.connection.reconnect!



Cheers,
Lawrence
_______________________________________________
Unicorn mailing list - [email protected]
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying

Reply via email to