[Koha-bugs] [Bug 31729] Enable automatic filesystem refresh in Plack

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Aug 31 12:51:32 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31729

Thomas Klausner <domm at plix.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Failed QA                   |In Discussion

--- Comment #48 from Thomas Klausner <domm at plix.at> ---
Here is a rather simple bash script that will set all the envs etc and start
Koha via plackup with hot-reload. I did not provide this as a patch (yet),
because I don't think this script should go into the Koha repo, as it's
tailored specifically for koha-testing-docker.

But I'd still appreciate some feedback (and some hints on where to add this to
ktd; or the OK to add it to Koha itself)

cat koha-plack-hotreload

set -e

instancename='kohadev'
instance_user="${instancename}-koha"
placksocket="/var/run/koha/${instancename}/plack.sock"
psgifile="/etc/koha/plack.psgi"

export DEV_INSTALL=1
export KOHA_HOME=/kohadevbox/koha
export KOHA_CONF="/etc/koha/sites/${instancename}/koha-conf.xml"
export
PERL5LIB=/kohadevbox/koha:/kohadevbox/koha/lib:/kohadevbox/koha/installer

# run plackup with hot reload
/usr/bin/plackup -M FindBin -R /kohadevbox/koha --workers 2
--user=${instance_user} --group ${instance_user} -E deployment --socket
${placksocket} -s Starman ${psgifile}

Greetings,
domm

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list