I want to deploy PSGI scripts that run on Apache2 using Plack. Apache is configured for:
<Location "/mypath">
SetHandler perl-script
PerlResponseHandler Plack::Handler::Apache2
PerlSetVar psgi_app /path/to/my/script.psgi
</Location>
When I test the script with plackup, the parameter --reloadkeeps track of updates in the file .psgi. In a production environment, it is good that Apache and Plack do not check and do not restart each change for performance reasons, but how can I explicitly tell them to restart Plack::Handler::Apache2and / or PSGI script to deploy the new version?
It seems that Plack regularly checks for some changes, but I don't know when. In addition, multiple instances are created, so sometimes I get different versions script.psgiwhen on /mypath. It would be useful to manually clear the perl response handler without having to restart Apache or wait for an unknown time.
Jakob source
share