Bugzilla – Attachment 167069 Details for
Bug 36932
koha-plack: Add parameter for specifically enabling Starman development environment
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36932: Add deployment parameter to koha-plack
Bug-36932-Add-deployment-parameter-to-koha-plack.patch (text/plain), 1.68 KB, created by
Marcel de Rooy
on 2024-05-23 07:07:34 UTC
(
hide
)
Description:
Bug 36932: Add deployment parameter to koha-plack
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2024-05-23 07:07:34 UTC
Size:
1.68 KB
patch
obsolete
>From e3161f64fbbe5eb38d55f527bf89c908d554e360 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Thu, 23 May 2024 06:47:44 +0000 >Subject: [PATCH] Bug 36932: Add deployment parameter to koha-plack >Content-Type: text/plain; charset=utf-8 > >Test plan (needs dev_install or ktd): >Add a die in a script somewhere to simulate a crash. >* For example in opac-main.pl: die "Line 43"; >Run koha-plack --restart without -dep and hit that page. Dev output? >Run koha-plack --restart with -dep and hit page again. No dev output? > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > debian/scripts/koha-plack | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > >diff --git a/debian/scripts/koha-plack b/debian/scripts/koha-plack >index 28f5430c72..c1ece25f2f 100755 >--- a/debian/scripts/koha-plack >+++ b/debian/scripts/koha-plack >@@ -99,11 +99,11 @@ start_plack() > > if [ "$DEV_INSTALL" = "1" ]; then > # Maybe we should switch off debug_mode if DEV_INSTALL is not set? >- environment="development" >+ if [ -z $deployment_environment ]; then environment="development"; fi > fi > > if [ "$debug_mode" = "yes" ]; then >- environment="development" >+ if [ -z $deployment_environment ]; then environment="development"; fi > daemonize="" > logging="" # remote debugger takes care > max_requests_and_workers="--workers 1" >@@ -465,6 +465,9 @@ while [ $# -gt 0 ]; do > --debugger-path) > debugger_path="$2" > shift 2 ;; >+ -dep|--deployment_environment) >+ deployment_environment=1 >+ shift ;; > -*) > die "Error: invalid option switch ($1)" ;; > *) >-- >2.30.2
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 36932
:
167069
|
167256
|
172101
|
176661
|
176700
|
179072