How to create custom Environments in GRAILS. This is how you can specify the environments in your grails application. Below we have made five environments. production uat (custom) qa (custom) development test environments { production { grails.serverURL = "http://www.ekiras.com/" } uat { grails.serverURL = "http://uat.ekiras.com:8080/" } qa { grails.serverURL = "http://qa.ekiras.com:8080/" } development { grails.serverURL = "http://localhost:8080/${appName}" } test { grails.serverURL = "http://localhost:8080/${appName}" } } There are Five predefined environments in grails. APPLICATION CUSTOM DEVELOPMENT PRODUCTION TEST How to get Execute a particular Environment in GRAILS To run a particular environment in grails you can do the following grails -Denv=qa -Dserver.port=8080 run-app How to get Current Environment in Grails Controller You can get current environ...