Skip to content

Instantly share code, notes, and snippets.

@artifactsauce
Created November 28, 2013 04:22
Show Gist options
  • Save artifactsauce/7687223 to your computer and use it in GitHub Desktop.
Save artifactsauce/7687223 to your computer and use it in GitHub Desktop.
Plackup a static web site and a web application from one PSGI file for development.
#!/usr/bin/env perl
use Plack::Builder;
use Plack::App::File;
use My::WebApp;
my $app1 = Plack::App::File->new(root => "vendor/root")->to_app;
my $app2 = My::WebApp->psgi_app;
builder {
mount "/" => $app1;
mount "/app" => $app2;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment