views:

456

answers:

1

When running a custom environment with grails via grails -Dgrails.env=custom run-app it appears that the auto reload / hot deploy is turned off, does anyone know how to arbitrarily enable this for any given environment, not just dev, which appears to be the only env where it is actually on by default?

A: 

The flag you want is "disable.auto.recompile", ex:

grails -Dgrails.env=custom -Ddisable.auto.recompile=false run-app
Ted Naleid
This seems to be shaky, for example raw code changes in a controller or service it works for, but say js, css, or html changes within the application views or web-app dir, no dice?
Eric Bennett
Those don't get auto-loaded for you anyway? Weird, that works fine for me even without the disable.auto.recompile. Do you have something cached? If you're using firefox hit cmd-shift-R (or ctl-shift-R on windows) to reload and bypass the cache.
Ted Naleid
Nope, doesn't seem to happen for me, does in dev mode though... very strange.
Eric Bennett