Help for this page

Select Code to Download


  1. or download this
    <VirtualHost *:80>
        ServerName localhost
        ProxyPass / http://localhost:8080/
    ...
            PerlSetVar psgi_app /var/www/MezlApp/script/runapp
        </Location>
    </VirtualHost>
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    use warnings;
    ...
    
    my $hypnotoad = Mojo::Server::Hypnotoad->new;
    $hypnotoad->run('/home/martin/PokusApp/script/runapp'); # Line 7!
    
  3. or download this
    #!/usr/bin/perl
    use strict;
    use warnings;
    ...
    
    require Mojolicious::Commands;
    Mojolicious::Commands->start_app('PokusApp');