From: Tara L Andrews Date: Sun, 17 Nov 2013 20:03:54 +0000 (+0000) Subject: An appropriate PSGI file for use with Starman X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=730e04464c19c35d1d586656299289ed6a782882;p=scpubgit%2Fstemmaweb.git An appropriate PSGI file for use with Starman --- diff --git a/stemmaweb.psgi b/stemmaweb.psgi index 359f422..3f671e2 100644 --- a/stemmaweb.psgi +++ b/stemmaweb.psgi @@ -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; +}