-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
At 1:26 PM -0400 4/7/01, <[EMAIL PROTECTED]> wrote:
>I have just started working on a web site using emb perl. We have
>migrated alot of our scripts directly, but some of our pages would be
>better handled as embperl.
>
>Anyway, I have just begun, and have found that as I modify packages, I
>am having to restart apache. I assume this is mod_perl compiling the
>package in. Is there any thing I can do to force a reload of the
>modules without restarting apache during development?
Been there. Two possibilities.
1. Enable Apache::Reload in the server and have your packages
include it. Two potential issues. The released version of
Apache::Reload won't work properly if your Embperl pages call "use
lib" or otherwise change @INC. I have patches. And, I've had some
problems with Apache::Reload and EmbperlObject which I haven't had
time to track down yet.
2. Add the following line to the Embperl pages you are working on.
[- $req_rec->child_terminate() if ($req_rec); -]
(The if condition is just incase you call it from outside of
mod_perl, I occasionally do quick tests by running my HTML pages from
Embperl by hand.) That will ensure that this process will terminate
as soon as it's done serving the page. Very inefficient, but ensures
that the package is no longer loaded. Just don't forget to take it
out once you are done.
- --
Kee Hinckley - Somewhere.Com, LLC
http://consulting.somewhere.com/consultants.html#kee
I'm not sure which upsets me more: that people are so unwilling to accept
responsibility for their own actions, or that they are so eager to regulate
everyone else's.
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
iQA/AwUBOs9xwiZsPfdw+r2CEQLDMgCg8P3N1qJ9aHG9Gm9cz2MQKokPWxIAoI+M
bXMUMXTeL8lpxjJYWPVbBwQ1
=fZuI
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]