common functions + deployment for grails sample