9be7f74ff5eb6f5d4770f5681b24d939c2cacd0a
[catagits/Catalyst-Devel.git] / share / script / myapp_server.pl.tt
1 [% startperl %]
2
3 use Catalyst::ScriptRunner;
4 Catalyst::ScriptRunner->run('[% name %]', 'Server');
5
6 1;
7
8 =head1 NAME
9
10 [% appprefix %]_server.pl - Catalyst Testserver
11
12 =head1 SYNOPSIS
13
14 [% appprefix %]_server.pl [options]
15
16  Options:
17    -d -debug          force debug mode
18    -f -fork           handle each request in a new process
19                       (defaults to false)
20    -? -help           display this help and exits
21       -host           host (defaults to all)
22    -p -port           port (defaults to 3000)
23    -k -keepalive      enable keep-alive connections
24    -r -restart        restart when files get modified
25                       (defaults to false)
26    -rd -restartdelay  delay between file checks
27                       (ignored if you have Linux::Inotify2 installed)
28    -rr -restartregex  regex match files that trigger
29                       a restart when modified
30                       (defaults to '\.yml$|\.yaml$|\.conf|\.pm$')
31    -restartdirectory  the directory to search for
32                       modified files, can be set mulitple times
33                       (defaults to '[SCRIPT_DIR]/..')
34    -follow_symlinks   follow symlinks in search directories
35                       (defaults to false. this is a no-op on Win32)
36    -background        run the process in the background
37    -pidfile           specify filename for pid file
38
39  See also:
40    perldoc Catalyst::Manual
41    perldoc Catalyst::Manual::Intro
42
43 =head1 DESCRIPTION
44
45 Run a Catalyst Testserver for this application.
46
47 =head1 AUTHORS
48
49 Catalyst Contributors, see Catalyst.pm
50
51 =head1 COPYRIGHT
52
53 This library is free software. You can redistribute it and/or modify
54 it under the same terms as Perl itself.
55
56 =cut