Bugzilla – Attachment 22767 Details for
Bug 9316
Add Nginx install options with plack
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9316: Add ability to install/configure nginx - Followup
Bug-9316-Add-ability-to-installconfigure-nginx---F.patch (text/plain), 1.76 KB, created by
Martin Renvoize (ashimema)
on 2013-11-07 12:18:36 UTC
(
hide
)
Description:
Bug 9316: Add ability to install/configure nginx - Followup
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2013-11-07 12:18:36 UTC
Size:
1.76 KB
patch
obsolete
>From 0340bbe3f45efc7376212acbea8a38500b45d395 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@gmail.com> >Date: Thu, 7 Nov 2013 12:07:34 +0000 >Subject: [PATCH] Bug 9316: Add ability to install/configure nginx - Followup > >Added ability to run plack without Plack::Middleware::Debug installed >--- > misc/bin/koha.psgi | 37 ++++++++++++++++++++++++------------- > 1 file changed, 24 insertions(+), 13 deletions(-) > >diff --git a/misc/bin/koha.psgi b/misc/bin/koha.psgi >index 010907a..170b226 100755 >--- a/misc/bin/koha.psgi >+++ b/misc/bin/koha.psgi >@@ -27,24 +27,35 @@ my $use_list = { > > }; > >-if(can_load( modules => { Plack::Middleware::Debug => undef} ) && $ENV{KOHA_DEBUG}){ >- my $panels = Plack::Middleware::Debug->default_panels; >-} >- > C4::Context->disable_syspref_cache(); > > my $intra=Plack::App::CGIBin->new(root => "__INTRANET_CGI_DIR__" ); > > my $opac = Plack::App::CGIBin->new(root => "__OPAC_CGI_DIR__"); >-builder { >- enable_if{ >- $ENV{KOHA_DEBUG} >- } 'Debug', panels => [[ 'DBITrace', level => 1 ], @$panels ]; > >- enable "Plack::Middleware::Static"; >+if(can_load( modules => { Plack::Middleware::Debug => undef} ) && $ENV{KOHA_DEBUG}){ >+ >+ my $panels = Plack::Middleware::Debug->default_panels; > >- enable 'StackTrace'; >+ builder { >+ enable 'Debug', panels => [[ 'DBITrace', level => 1 ], @$panels ]; > >- mount '/cgi-bin/koha/' => $intra; >- mount '/cgi-bin/koha/' => $opac; >-}; >+ enable "Plack::Middleware::Static"; >+ >+ enable 'StackTrace'; >+ >+ mount '/cgi-bin/koha/' => $intra; >+ mount '/cgi-bin/koha/' => $opac; >+ }; >+} >+ >+else { >+ builder { >+ enable "Plack::Middleware::Static"; >+ >+ enable 'StackTrace'; >+ >+ mount '/cgi-bin/koha/' => $intra >+ mount '/cgi-bin/koha/' => $opac; >+ }; >+} >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 9316
:
14257
|
14322
|
14369
|
14370
|
14371
|
14375
|
14376
|
14378
|
14379
|
14381
|
14383
|
14385
|
14789
|
15151
|
15859
|
21818
|
21819
| 22767