[dancer-users] Dancer app in production on Starman : Dancer::Plugin::Database Child process cannot use database handle created in parent
Anthony Milan
anthony.milan at laposte.net
Mon Feb 10 22:23:14 GMT 2014
Le 10/02/2014 22:57, Anthony Milan a écrit :
> Hi,
>
> I tried to deploy my little app with Starman:
> plackup -E deployment -s Starman -p 5001 --workers=2 -a bin/app.pl
>
> I had this error:
> Child process cannot use database handle created in parent
>
> I used Dancer::Plugin::Database to manage database
>
> In this thread:
> http://lists.preshweb.co.uk/pipermail/dancer-users/2011-July/001681.html
> I read that Dancer::Plugin::Database ensure that handles are not
> shared between processes/threads.
>
> Most probably, I do something wrong :(
I googled around starman and DBI and I execute
Starman without plackup.
starman -p 5000 --workers=2 -a ../bin/app.pl
It seems to work. Any idea?
Thanks
--
Anthony Milan
More information about the dancer-users
mailing list