Created
November 28, 2013 04:22
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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