Snippets

Brian Medley Mojolicious Prefork Arguments

Created by Brian Medley
#!/opt/perl

use Mojolicious::Lite;

get '/' => sub {
    my $c = shift;

    $c->render(template => 'index');
};

@ARGV = ("prefork", "-l", "http://*:8080") unless @ARGV;

app->start;

__DATA__

@@ index.html.ep
Howdy

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.