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
2009-08-25 18:24:15
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
2009-08-26 00:12:30
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
2009-08-26 01:05:24
Nope, doesn't seem to happen for me, does in dev mode though... very strange.
Eric Bennett
2009-08-26 04:09:24