Skip to content

Instantly share code, notes, and snippets.

@akimacho
Created November 3, 2015 05:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akimacho/ef970297d86d279aebe7 to your computer and use it in GitHub Desktop.
Save akimacho/ef970297d86d279aebe7 to your computer and use it in GitHub Desktop.
use strict;
use warnings;
use utf8;
use Plack::Builder;
use Plack::App::WrapCGI;
my $script_path = "/path/to/script.cgi";
my $app = Plack::App::WrapCGI->new(
script => 'gitweb.cgi',
)->to_app;
builder {
enable "Plack::Middleware::Static",
path => qw(^/static/),
root => '/home/git/gitweb/';
$app;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment