Reloadable Config Plugin

  • Tags: /
  • Latest: 0.1
  • Last Updated: 08 August 2009
  • Grails version: 1.1.1 > *
  • Authors: null
0 vote
Dependency:
compile ":reloadable-config:0.1"

 Documentation

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"]
  1. 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
  2. where cfgPollingRetryAttempts is the maximum number of times plugin will try to reload the external config.groovy.
  3. where reloadable.cfgs contains the list of external configuration files that you would like to be reloaded.