summaryrefslogtreecommitdiff
path: root/script/bookmarks_server.pl
blob: ac117e0f10179dbcfcd3f357fe3651232229f6bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/usr/bin/perl -w 
 
BEGIN { 
    $ENV{CATALYST_ENGINE} ||= 'HTTP';
    $ENV{CATALYST_SCRIPT_GEN} = 4;
}  
 
use strict;
use Getopt::Long;
use Pod::Usage;
use FindBin;
use lib "$FindBin::Bin/../lib";
use Bookmarks;
 
my $help = 0;
my $port = 3000;
 
GetOptions( 'help|?' => \$help'port=s' => \$port );
 
pod2usage(1) if $help;
 
Bookmarks->run($port);
 
1;
 
=head1 NAME
 
bookmarks_server.pl - Catalyst Testserver
 
=head1 SYNOPSIS
 
bookmarks_server.pl [options]
 
 Options:
   -? -help    display this help and exits
   -p -port    port (defaults to 3000)
 
 See also:
   perldoc Catalyst::Manual
   perldoc Catalyst::Manual::Intro
 
=head1 DESCRIPTION
 
Run a Catalyst Testserver for this application.
 
=head1 AUTHOR
 
Sebastian Riedel, C<sri@oook.de>
 
=head1 COPYRIGHT
 
Copyright 2004 Sebastian Riedel. All rights reserved.
 
This library is free software. You can redistribute it and/or modify
it under the same terms as perl itself.
 
=cut