Permalink
Browse files

Add app.psgi for testing

  • Loading branch information...
1 parent fd92d01 commit 3157b980327dd4d1e560f7688bb7264083066ad3 @ranguard ranguard committed Jul 18, 2012
Showing with 12 additions and 0 deletions.
  1. +12 −0 app.psgi
View
@@ -0,0 +1,12 @@
+# app.psgi for prereviewing the generated content
+
+use Plack::Builder;
+use Plack::App::File;
+use Plack::Middleware::DirIndex;
+
+my $app = Plack::App::File->new({ root => './www/' })->to_app;
+
+builder {
+ enable "Plack::Middleware::DirIndex", dir_index => 'index.html';
+ $app;
+}

0 comments on commit 3157b98

Please sign in to comment.