Resolved!
Once you know what you're looking for it is just there in the manual..
Passenger provides a callback:
if defined?(PhusionPassenger)
PhusionPassenger.on_event(:starting_worker_process) do |forked|
if forked
# We're in smart spawning mode.
DB.disconnect
else
# We're in direct spawning mode. We don't need to do anything.
end
end
end
This disconnects after forking, but it seems to work well anyway..
thanks!
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.