Commit | Line | Data |
89de6a33 |
1 | package Gitalist; |
2 | |
3 | use strict; |
4 | use warnings; |
5 | |
6 | use Catalyst::Runtime 5.80; |
7 | |
8 | # Set flags and add plugins for the application |
9 | # |
10 | # -Debug: activates the debug mode for very useful log messages |
11 | # ConfigLoader: will load the configuration from a Config::General file in the |
12 | # application's home directory |
13 | # Static::Simple: will serve static files from the application's root |
14 | # directory |
15 | |
16 | use parent qw/Catalyst/; |
17 | use Catalyst qw/-Debug |
18 | ConfigLoader |
19 | Static::Simple/; |
20 | our $VERSION = '0.01'; |
21 | |
4666d5c7 |
22 | # Bring in the libified gitweb.cgi. |
23 | use gitweb; |
24 | |
89de6a33 |
25 | # Configure the application. |
26 | # |
27 | # Note that settings in gitalist.conf (or other external |
28 | # configuration file that you set up manually) take precedence |
29 | # over this when using ConfigLoader. Thus configuration |
30 | # details given here can function as a default configuration, |
31 | # with an external configuration file acting as an override for |
32 | # local deployment. |
33 | |
d3feefcf |
34 | __PACKAGE__->config( |
35 | name => 'Gitalist', |
36 | default_view => 'Default', |
37 | ); |
89de6a33 |
38 | |
39 | # Start the application |
40 | __PACKAGE__->setup(); |
41 | |
89de6a33 |
42 | =head1 NAME |
43 | |
44 | Gitalist - Catalyst based application |
45 | |
46 | =head1 SYNOPSIS |
47 | |
48 | script/gitalist_server.pl |
49 | |
50 | =head1 DESCRIPTION |
51 | |
52 | [enter your description here] |
53 | |
54 | =head1 SEE ALSO |
55 | |
56 | L<Gitalist::Controller::Root>, L<Catalyst> |
57 | |
58 | =head1 AUTHOR |
59 | |
60 | Dan Brook,,, |
61 | |
62 | =head1 LICENSE |
63 | |
64 | This library is free software. You can redistribute it and/or modify |
65 | it under the same terms as Perl itself. |
66 | |
67 | =cut |
68 | |
69 | 1; |