I have simple web application written in perl/Mojolicious and running under hypnotoad.
I need to define some handler for the "spawn" event (emited by Mojo::Server::Prefork).
But i dont know, how to insert this hander definitiion in the code of startup method of Mojolicious application. $self->on("spawn"=>sub {})
doesnt work :( And Dumper($self)
was not helpful at all: there are no $self->server or $server->prefork ...
Tell me please, how to do it.
Thanks!