Last updated by admin 2 years ago
grails install-plugin reloadable-config
Last updated by ogourment 2 years ago
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.
Last updated by admin 2 years ago
Last updated by admin 2 years ago