Re: Using Apache::Reload in development environment?

2001-07-30 Thread Stas Bekman

On Sun, 29 Jul 2001, Philip Mak wrote:

 I have a site running mod_perl that I'm constantly making changes to.

 What do I have to do in order to make it so that when I edit any file
 (either a .pl script directly called on the site, or a .pm module that my
 perl script uses), then the changes will take effect automatically? I
 would rather not have to go into each file manually and put use
 Apache::Reload.

 Do I just put

 PerlInitHandler Apache::Reload

 in httpd.conf? Is there anything else that I have to do?

no (re-)?read the manpage. it's all there.

It's possible that Matt wants to add other options to the SYNOPSIS
section, as not everybody bothers to read the manpage. I think people are
used to see all of the functionality covered in SYNOPSIS.

_
Stas Bekman  JAm_pH --   Just Another mod_perl Hacker
http://stason.org/   mod_perl Guide  http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://eXtropia.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/





Re: Using Apache::Reload in development environment?

2001-07-30 Thread Philip Mak

On Mon, 30 Jul 2001, Stas Bekman wrote:

 no (re-)?read the manpage. it's all there.

 It's possible that Matt wants to add other options to the SYNOPSIS
 section, as not everybody bothers to read the manpage. I think people are
 used to see all of the functionality covered in SYNOPSIS.

In perldoc Apache::Reload, the DESCRIPTION has the following sections:

- StatINC Replacement
- Register Modules Implicitly
- Register Modules Explicitly
- Special Touch File

I just re-read it again and realized that StatINC Replacement is what I
wanted... although it wasn't obvious from just reading the header since I
don't know what StatINC is. Re-reading the first paragraph of DESCRIPTION,
I see that it implies that StatINC always checks the modification time of
the file.

I was also somewhat confused as to what PerlSetVar ReloadAll does since
that perldoc page did not have an explicit definition, only examples of it
being used.




Re: Using Apache::Reload in development environment?

2001-07-30 Thread Eric Cholet

--On 30/07/01 06:43 -0400 Philip Mak wrote:

 In perldoc Apache::Reload, the DESCRIPTION has the following sections:

 - StatINC Replacement
 - Register Modules Implicitly
 - Register Modules Explicitly
 - Special Touch File

 I just re-read it again and realized that StatINC Replacement is what I
 wanted... although it wasn't obvious from just reading the header since I
 don't know what StatINC is. Re-reading the first paragraph of DESCRIPTION,
 I see that it implies that StatINC always checks the modification time of
 the file.

 I was also somewhat confused as to what PerlSetVar ReloadAll does since
 that perldoc page did not have an explicit definition, only examples of it
 being used.

PerlSetVar ReloadAll will reload all modules. That might take some time,
so you might want to reload only your own modules, in which case you
set it to Off, and add a directive to reload only your tree, such as
PerlSetVar ReloadModules Foo::* Bar::*

--
Eric Cholet
145C FF7F 7920 04B0 7BA3  48D8 5591 E2C0 6664 C078