Use Environment Variables in application.yml

Posted 05/14/2017 9:29 AM by Corey Klass

A convenient method of configuring parameters in a Grails app application.yml file is to use system environment variables instead of hard-coding values.

The syntax for an environment variable is:

settingToUse: ${VARIABLE_NAME_GOES_HERE}