On Mon, 27 Apr 2015, Dan Book wrote:
> 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
OK, and I can use those as args to app->start(). Like so:
...
#! /usr/bin/perl
use Mojolicious::Lite;
get '/' => {text => 'Hello Wor...ALL GLORY TO THE HYPNOTOAD!'};
app->start('prefork', '--listen' => 'http:/127.0.0.1:3004');
...
Well almost...
[root@sdfsdfds netrestore_rest]# perl x
Use of uninitialized value in string eq at
/usr/share/perl5/vendor_perl/Mojo/Server/Daemon.pm line 151.
Use of uninitialized value in string eq at
/usr/share/perl5/vendor_perl/Mojo/Server/Daemon.pm line 175.
Server available at http:/127.0.0.1/*:3004.
^C[root@sdfsdfds netrestore_rest]#
That's with Mojolicious 5.50. I'll check again with most recent.