I am trying to run a server with Plack::Runner
. How do I run it in the background? I've tried the following:
my $runner = Plack::Runner->new;
$runner->parse_options(qw' --host 127.0.0.1 --port 90210 -D');
$runner->run($app);
It seems to ignore the -D. I've also tried '--daemon' and that doesn't work either.
Thanks!
plackup --host 127.0.0.1 --port 90210 -D /path/to/app.psgi
. For example.psgi
files look at the webpage for the Plack distribution there are almost 20 examples. – Brad Gilbert