Have this in BootStrap.groovy
import grails.util.Environment;class BootStrap {
def messageSource
def init = { servletContext ->
if( Environment.getCurrent() == Environment.PRODUCTION ){
messageSource.basenames = [ 'WEB-INF/grails-app/i18n/messages' ]
messageSource.clearCache()
}
}
def destroy = {
}
}
Run these two commands to package and deploy
- grails -Dgrails.env=production app-engine package
- appcfg.sh update ./target/war
No comments:
Post a Comment