Details
-
Type:
Improvement
-
Status:
Reopened
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 1.2.1, 1.2.2, 1.3-RC1
-
Fix Version/s: 1.3 final
-
Component/s: Project infrastructure
-
Labels:None
Description
Since grails 1.2 the gsps are pre compiled when generating the war file.
One easy way to customize the look and feel of grails application is to simply update the views for e.g. Developer A gives the war file to deployment team B.
Given this use case it would be interesting if there is a command line option to enable/disable the precompilation of gsp.
e.g.
grails -nogspcompile war
Issue Links
- relates to
-
GRAILS-5787
Allow updating / overriding precompiled GSPs in war-deployed mode ("gsp only reloading" -mode for production)
-
Disabling precompilation isn't necessary. It's possible to add grails.gsp.reload.enable=true to Config.groovy or set the "grails.gsp.enable.reload" System property to "true" (-Dgrails.gsp.enable.reload=true command line argument) to enable GSP reloading. There will be a negative effect on performance since some internal caching is disabled when reloading is enabled in Grails.
GRAILS-5787would be a better solution, but it's not implemented yet.