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 Lindblad

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 Lindblad 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.