diff options
author | Edmund von der Burg <evdb@mysociety.org> | 2011-03-18 13:12:46 +0000 |
---|---|---|
committer | Edmund von der Burg <evdb@mysociety.org> | 2011-03-18 13:15:17 +0000 |
commit | df2e586f26ca9b01bf2101b91c0d716a380ad1ab (patch) | |
tree | a2072bab0f2c404f3f3294545bddd01e6456011e /web | |
parent | 87e95e06e64dfeccb3a80afe1a03ed326e4192aa (diff) |
Changes so that proper environment is setup when running as cgi/fastcgi
Diffstat (limited to 'web')
-rwxr-xr-x | web/fixmystreet_app_cgi.cgi | 11 | ||||
-rwxr-xr-x | web/fixmystreet_app_fastcgi.cgi | 11 |
2 files changed, 10 insertions, 12 deletions
diff --git a/web/fixmystreet_app_cgi.cgi b/web/fixmystreet_app_cgi.cgi index c656cab5b..7d60ce673 100755 --- a/web/fixmystreet_app_cgi.cgi +++ b/web/fixmystreet_app_cgi.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', 'CGI'); +Catalyst::ScriptRunner->run( 'FixMyStreet::App', 'CGI' ); 1; 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; |