Reloadable Config Plugin
Dependency :
compile ":reloadable-config:0.1"
Summary
Installation
grails install-plugin reloadable-config
Description
In your grails-app/conf/Config.groovy add
reloadable.cfgPollingFrequency = 5000
reloadable.cfgPollingRetryAttempts = 5
reloadable.cfgs = [ "file:/opt/myexternalconfigs/config.groovy"]- where cfgPollingFrequency is in milli seconds i.e above e.g. configuration makes the app poll every 5 seconds for changes in external config.groovy
- where cfgPollingRetryAttempts is the maximum number of times plugin will try to reload the external config.groovy.
- where reloadable.cfgs contains the list of external configuration files that you would like to be reloaded.