An appropriate PSGI file for use with Starman
Tara L Andrews [Sun, 17 Nov 2013 20:03:54 +0000 (20:03 +0000)]
stemmaweb.psgi

index 359f422..3f671e2 100644 (file)
@@ -1,8 +1,12 @@
 use strict;
 use warnings;
 
+use lib '/var/www/catalyst/stemmaweb/lib';
 use stemmaweb;
+use Plack::Builder;
 
-my $app = stemmaweb->apply_default_middlewares(stemmaweb->psgi_app);
-$app;
-
+builder {
+       enable( "Plack::Middleware::ReverseProxyPath" );
+       my $app = stemmaweb->apply_default_middlewares(stemmaweb->psgi_app);
+       $app;
+}