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