perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcus R. Popetz" <mpop...@netility.com>
Subject Re: development?
Date Sat, 07 Apr 2001 20:10:31 GMT
I believe, if your packages are included in @INC, when their mod times 
change, mod_perl will reload them.  You probably need a perl script 
executed at apache startup that adds them into the parent processes copy of 
@INC.

-mp

At 12:52 PM 4/7/01, Kee Hinckley wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>At 1:26 PM -0400 4/7/01, <c.w.huling@pobox.com> 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: embperl-unsubscribe@perl.apache.org
>For additional commands, e-mail: embperl-help@perl.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message