Commit | Line | Data |
6fce1f9f |
1 | [% startperl %] |
239b5fc0 |
2 | |
6fce1f9f |
3 | use Catalyst::ScriptRunner; |
4 | Catalyst::ScriptRunner->run('[% name %]', 'Server'); |
239b5fc0 |
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 |