aboutsummaryrefslogtreecommitdiffstats
path: root/web/fixmystreet_app_fastcgi.cgi
diff options
context:
space:
mode:
authorEdmund von der Burg <evdb@mysociety.org>2011-03-18 13:12:46 +0000
committerEdmund von der Burg <evdb@mysociety.org>2011-03-18 13:15:17 +0000
commitdf2e586f26ca9b01bf2101b91c0d716a380ad1ab (patch)
treea2072bab0f2c404f3f3294545bddd01e6456011e /web/fixmystreet_app_fastcgi.cgi
parent87e95e06e64dfeccb3a80afe1a03ed326e4192aa (diff)
Changes so that proper environment is setup when running as cgi/fastcgi
Diffstat (limited to 'web/fixmystreet_app_fastcgi.cgi')
-rwxr-xr-xweb/fixmystreet_app_fastcgi.cgi11
1 files changed, 5 insertions, 6 deletions
diff --git a/web/fixmystreet_app_fastcgi.cgi b/web/fixmystreet_app_fastcgi.cgi
index 03566029b..1059cbd34 100755
--- a/web/fixmystreet_app_fastcgi.cgi
+++ b/web/fixmystreet_app_fastcgi.cgi
@@ -1,13 +1,12 @@
#!/usr/bin/env perl
-# set all the paths to the perl code
-use FindBin;
-use lib "$FindBin::Bin/../commonlib/perllib";
-use lib "$FindBin::Bin/../perllib";
-use local::lib "$FindBin::Bin/../local-lib5";
+BEGIN { # set all the paths to the perl code
+ use FindBin;
+ require "$FindBin::Bin/../setenv.pl";
+}
use Catalyst::ScriptRunner;
-Catalyst::ScriptRunner->run('FixMyStreet::App', 'FastCGI');
+Catalyst::ScriptRunner->run( 'FixMyStreet::App', 'FastCGI' );
1;