Reloading a GSP in test & production environment.

15 / Apr / 2010 by Chandan Luthra 0 comments

In one of my project I need to generate GSP (groovy server pages) on the fly and write them on the file system. There was a quartz job that updates the GSP page on regular intervals.

The problem was, this functionality worked flawless in the development environment but fails in test and production environment. In test and production environment you can force and reload the GSP in order to see the latest one.

You can force the GSP to reload by writing this following code in your Config.groovy file:

grails.gsp.reload.enable = true

Any suggestions and comments are welcome.

Cheers
~Chandan Luthra~

Tag -

FOUND THIS USEFUL? SHARE IT

Leave a comment -