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