El Jueves, 7 de Enero de 2010, Jeremy Evans escribió:
> > Don't set the Sequel instance in the master process, instead do it in
> > each worker ("after_fork" block in unicorn config file).
> 
> Alternatively, you can set up the Sequel Database in the master
> process, and just call Database#disconnect before forking.

Yes, in fact I do that to check the database connection when starting Unicorn 
and raise if some database fails.
Then I disconnect the databases and reconnect in each worker. 


-- 
Iñaki Baz Castillo <[email protected]>
_______________________________________________
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