4 $ENV{CATALYST_ENGINE} ||= 'HTTP';
5 $ENV{CATALYST_SCRIPT_GEN} = 28;
13 use lib "$FindBin::Bin/../lib";
22 my $restart_delay = 1;
23 my $restart_regex = '\.yml$|\.yaml$|\.pm$';
24 my $restart_directory = undef;
34 'keepalive|k' => \$keepalive,
35 'restart|r' => \$restart,
36 'restartdelay|rd=s' => \$restart_delay,
37 'restartregex|rr=s' => \$restart_regex,
38 'restartdirectory=s' => \$restart_directory,
41 pod2usage(1) if $help;
44 $ENV{CATALYST_ENGINE} = 'HTTP::Restarter';
47 $ENV{CATALYST_DEBUG} = 1;
50 # This is require instead of use so that the above environment
51 # variables can be set at runtime.
54 ComponentUI->run( $port, $host, {
57 keepalive => $keepalive,
59 restart_delay => $restart_delay,
60 restart_regex => qr/$restart_regex/,
61 restart_directory => $restart_directory,
68 componentui_server.pl - Catalyst Testserver
72 componentui_server.pl [options]
75 -d -debug force debug mode
76 -f -fork handle each request in a new process
78 -? -help display this help and exits
79 -host host (defaults to all)
80 -p -port port (defaults to 3000)
81 -k -keepalive enable keep-alive connections
82 -r -restart restart when files get modified
84 -rd -restartdelay delay between file checks
85 -rr -restartregex regex match files that trigger
86 a restart when modified
87 (defaults to '\.yml$|\.yaml$|\.pm$')
88 -restartdirectory the directory to search for
93 perldoc Catalyst::Manual
94 perldoc Catalyst::Manual::Intro
98 Run a Catalyst Testserver for this application.
102 Sebastian Riedel, C<sri@oook.de>
103 Maintained by the Catalyst Core Team.
107 This library is free software, you can redistribute it and/or modify
108 it under the same terms as Perl itself.