The .psgi was written by franky (Francoise Dehinbo) and gist-ed by
Ranguard (Leo Lapworth). I've tweaked it to play nice with checkouts
and "make install".
author_requires('WWW::Mechanize::TreeBuilder');
}
-install_script glob('script/*.pl');
+install_script glob('script/*.p{l,sgi}');
auto_install;
{ # Make sure you REALLY REALLY have to have the env variable set to run
http://example.gitalist.com
+=head2 Plack
+
+If you would like to run Gitalist under L<Plack> then one need only
+make use of L<plackup|search.cpan.org/perldoc?plackup> and the
+C<.psgi> found under C<scripts/>:
+
+ plackup script/gitalist_app.psgi
+
=head1 CONFIGURATION
The Gitalist config is loaded with L<Catalyst::Plugin::ConfigLoader>
--- /dev/null
+#!/usr/bin/perl
+
+use strict;
+
+use FindBin;
+BEGIN {
+ my $env = "$FindBin::Bin/env";
+ if (-r $env) {
+ do $env or die $@;
+ }
+}
+
+use Gitalist;
+use Plack::Builder;
+
+Gitalist->setup_engine('PSGI');
+my $app = sub { Gitalist->run(@_) };
+
+builder { $app };