Re: auto-reload issue
Shugo Maeda <[email protected]> Tue, 08 May 2007 18:26:55 +0900
| Newsgroups | gmane.comp.apache.mod-ruby |
|---|---|
| Message-ID | <[email protected]> |
Hi, On 04/28/2007 04:56 AM, Dennis Sutch wrote: > 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? auto-reload doesn't affect RubyRequire. It only affects require in Ruby scripts. For example, the following script reload foo.rb when foo.rb is modified. test.rbx: require "foo" r = Apache.request r.content_type = "text/plain" ... > <VirtualHost *:80> > SetHandler ruby-object > RubyTimeOut 30 > RubyRequire auto-reload > RubyAddPath /var/www/myapp/bin > RubyRequire myapp > RubyHandler MyApp.instance > </VirtualHost> You have to restart Apache to reload MyApp:( Shugo