from official documents
Software Discovery
In your code, for example, in a Gant script or in the bootstrap class, you can find the environment using the GrailsUtil class:
import grails.util.GrailsUtil ... switch(GrailsUtil.environment) { case "development": configureForDevelopment() break case "production": configureForProduction() break
yura
source share