auto-reload issue

"Dennis Sutch" <[email protected]> Fri, 27 Apr 2007 15:56:01 -0400
Newsgroups gmane.comp.apache.mod-ruby
Message-ID <[email protected]>
------=_Part_305797_13842111.1177703761901
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

I'm able to successfully use mod_ruby to serve a Ruby script.  After I add
the "RubyRequire auto-reload" directive (and restart Apache), changes to my
script are not reflected when I reload my browser.  Is there something else
that I need to do (see configuration below)?  Does auto-reload work in the
current version of mod_ruby?

Here's what I'm using:

Red Hat Enterprise Linux 3
Apache 2.0.46
Ruby 1.8.5
mod_ruby 1.2.6

The important section from httpd.conf file:

<VirtualHost *:80>
        SetHandler ruby-object
        RubyTimeOut 30
        RubyRequire auto-reload
        RubyAddPath /var/www/myapp/bin
        RubyRequire myapp
        RubyHandler MyApp.instance
</VirtualHost>

-- 
Dennis Sutch
[email protected]

------=_Part_305797_13842111.1177703761901
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

I&#39;m able to successfully use mod_ruby to serve a Ruby script.&nbsp; After I add the &quot;RubyRequire auto-reload&quot; directive (and restart Apache), changes to my script are not reflected when I reload my browser.&nbsp; Is there something else that I need to do (see configuration below)?&nbsp; Does auto-reload work in the current version of mod_ruby?
<br><br>Here&#39;s what I&#39;m using:<br><br>Red Hat Enterprise Linux 3<br>Apache 2.0.46<br>Ruby 1.8.5<br>mod_ruby 1.2.6<br><br>The important section from httpd.conf file:<br><br>&lt;VirtualHost *:80&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SetHandler ruby-object
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RubyTimeOut 30<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RubyRequire auto-reload<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RubyAddPath /var/www/myapp/bin<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RubyRequire myapp<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RubyHandler MyApp.instance<br>&lt;/VirtualHost&gt;<br><br>-- <br>Dennis Sutch
<br><a href="mailto:[email protected]">[email protected]</a>

------=_Part_305797_13842111.1177703761901--