What do you mean by "in-line"? I'm not sure I follow the question.
The prefork command takes command-line options: https://metacpan.org/pod/Mojolicious::Command::prefork Otherwise if you just need hypnotoad to stay in the foreground (and you don't need hot-deployment) you can use hypnotoad -f. On Mon, Apr 27, 2015 at 4:11 PM, Charlie Brady < [email protected]> wrote: > > I see in Cookbook this standalone M::L app running under hypnotoad. > > ... > use Mojolicious::Lite; > > app->config(hypnotoad => {listen => ['http://*:80']}); > > get '/' => {text => 'Hello Wor...ALL GLORY TO THE HYPNOTOAD!'}; > > app->start; > ... > > I want to do something very similar, but using prefork mode (to behave > nicely under runit supervision, where the parent process is expected to > survive until terminated). > > I can't find a way to configure mode and options in-line, rather than > provided via @ARGV. > > Thanks for your advice... > -- You received this message because you are subscribed to the Google Groups "Mojolicious" 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/mojolicious. For more options, visit https://groups.google.com/d/optout.
