Skip to content

Instantly share code, notes, and snippets.

@ranguard
Created May 20, 2011 15:02
Show Gist options
  • Save ranguard/983093 to your computer and use it in GitHub Desktop.
Save ranguard/983093 to your computer and use it in GitHub Desktop.
Gitalist app.psgi example
#!/usr/bin/env perl
use strict;
BEGIN {
# directory containing clones
$ENV{GITALIST_REPO_DIR} = "./";
}
use Gitalist;
use Plack::Builder;
Gitalist->setup_engine('PSGI');
my $app = sub { Gitalist->run(@_) };
builder { $app };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment