Bugzilla – Attachment 141596 Details for
Bug 31729
Enable automatic filesystem refresh in Plack
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31729: Enable automatic filesystem refresh in Plack
Bug-31729-Enable-automatic-filesystem-refresh-in-P.patch (text/plain), 1.20 KB, created by
Martin Renvoize (ashimema)
on 2022-10-11 07:29:42 UTC
(
hide
)
Description:
Bug 31729: Enable automatic filesystem refresh in Plack
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2022-10-11 07:29:42 UTC
Size:
1.20 KB
patch
obsolete
>From d413f80cf3ce3af5d23887875751226b34853685 Mon Sep 17 00:00:00 2001 >From: Mason James <mtj@kohaaloha.com> >Date: Tue, 11 Oct 2022 05:39:23 +1300 >Subject: [PATCH] Bug 31729: Enable automatic filesystem refresh in Plack > >patch uses the following module... > https://metacpan.org/pod/Plack::Middleware::Refresh > >to test: > > 1/ start ktd > 2/ add warn to about.pl file, load page, observe no output in log :( > 3/ apply patch to /etc/koha/plack.psgi > 4/ restart plack > 5/ add warn to about.pl file, load page, observe output in log :) > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > debian/templates/plack.psgi | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/debian/templates/plack.psgi b/debian/templates/plack.psgi >index 89cd6ef48f..d1401a17db 100644 >--- a/debian/templates/plack.psgi >+++ b/debian/templates/plack.psgi >@@ -72,6 +72,9 @@ builder { > enable "ReverseProxy"; > enable "Plack::Middleware::Static"; > >+ # bz 31729, enable filesystem reload for dev plack >+ enable "Refresh", cooldown => 3 if ($ENV{DEV_INSTALL} ; >+ > # + is required so Plack doesn't try to prefix Plack::Middleware:: > enable "+Koha::Middleware::SetEnv"; > enable "+Koha::Middleware::RealIP"; >-- >2.20.1
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 31729
:
141577
|
141578
|
141596
|
141597
|
141598
|
141714
|
141715
|
141716
|
142043
|
142044
|
142050
|
148600
|
148602
|
148603
|
148606
|
148612
|
148613
|
148720
|
154542
|
154601
|
154605
|
154676
|
154677