Standardized external configuration for your app
Dependency :
compile ":external-config:2.0"
Summary
Installation
grails install-plugin external-config
Description
Intro
Provides easy and consistent facility to have externalized configuration files for your Grails applications.Installation
Install as any plugin withgrails install-plugin external-config
Usage
The plugin replaces (creates a copy of your current config in 'grails-app/config' before writing the new one) your Config.groovy and DataSource.groovy files with standardized config that includes external config files in the Grails config building. To execute the install of an externalized Config.groovy rungrails externalize-config
- ~/.grails/<appName>Config/Config.groovy or ~/.grails/<appName>Config/DataSource.groovy
- Files specified by the two environment variables <APPLICATION_NAME>_CONFIG_LOCATION and <APPLICATION_NAME>_DATASOURCE_LOCATION
Example
Assume your application is called my-app the plugin created config expects your configuration files to be- ~/.grails/my-appConfig/Config.groovy
- ~/.grails/my-appConfig/DataSource.groovy
- MY_APP_CONFIG_LOCATION
- MY_APP_DATASOURCE_LOCATION