Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

script to start app under Plack

  • Loading branch information...
commit d4df55aa365d6779ed7372c74e918ca3527a11de 1 parent 95c1f05
@evdb evdb authored
Showing with 21 additions and 0 deletions.
  1. +21 −0 app.psgi
View
21 app.psgi
@@ -0,0 +1,21 @@
+use strict;
+use warnings;
+
+use lib 'lib';
+
+use FixMyStreet::App;
+use Plack::Builder;
+use Plack::App::File;
+
+FixMyStreet::App->setup_engine('PSGI');
+my $app = sub { FixMyStreet::App->run(@_) };
+
+builder {
+
+ # enable 'Debug';
+
+ # If request is from localhost then must be from a proxy
+ enable_if { $_[0]->{REMOTE_ADDR} eq '127.0.0.1'; } "ReverseProxy";
+
+ $app;
+};
Please sign in to comment.
Something went wrong with that request. Please try again.