File: sample_server.pl

package info (click to toggle)
libhttp-server-simple-mason-perl 0.14-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 204 kB
  • sloc: perl: 1,280; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 238 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/perl
use warnings;
use strict;

my $server = MyApp::Server->new( 8081);

$server->run;

package MyApp::Server;
use base qw/HTTP::Server::Simple::Mason/;

sub mason_config {
    return ( comp_root => '/tmp/mason-pages' );
}

1;