Skip to content

Instantly share code, notes, and snippets.

@rsrchboy
Created December 19, 2009 02:43
Show Gist options
  • Save rsrchboy/259914 to your computer and use it in GitHub Desktop.
Save rsrchboy/259914 to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl
#
# Chris Weyl <cweyl@alumni.drew.edu>
use strict;
use warnings;
use lib '/usr/share/bugzilla';
use Plack::App::CGIBin;
use Plack::Builder;
use Readonly;
Readonly my $BZ => '/usr/share/bugzilla';
my $app = Plack::App::CGIBin->new(root => $BZ)->to_app;
builder {
enable "Plack::Middleware::Static",
path => qr{^/skins/}, root => $BZ;
enable "Plack::Middleware::Static",
path => qr{^/js/}, root => $BZ;
$app;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment