Automatic reload of plugins

Hi

I am developing a plugin and wonder if there is a way to tell Mongrel
to reload the vendor directory without restarting.

Many thanks in advance

/Erik L.

On 22 Apr 2008, at 15:10, Erik L. wrote:

Hi

I am developing a plugin and wonder if there is a way to tell Mongrel
to reload the vendor directory without restarting.

It’s not really mongrel’s responsability. Removing the plugin’s lib
directory from Dependencies.load_once_paths should help (unless you’re
messing around with the plugin startup (ie it’s init.rb), in which
case you may just be screwed unless you can convince rails to rerun
it’s plugin loading process.

Fred

Erik L. wrote:

Hi

I am developing a plugin and wonder if there is a way to tell Mongrel
to reload the vendor directory without restarting.

If you hook unit tests to that plugin, you can generally trigger the
tests from
a “messenger test” in your ./test folder. Then you can make small
changes to the
plugin, run the tests, and watch the results, without excess manual
testing.


Phlip

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs