mirror of https://github.com/reiseburo/offtopic
Allow overriding the zookeepers property at runtime
This commit is contained in:
parent
4b5de1c70a
commit
0410ce6fc5
|
@ -60,6 +60,11 @@ test {
|
|||
}
|
||||
}
|
||||
|
||||
run {
|
||||
systemProperty 'zookeepers', 'localhost:2181'
|
||||
dependsOn check
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// RELEASING
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -14,7 +14,7 @@ import offtopic.OfftopicClient
|
|||
ratpack {
|
||||
bindings {
|
||||
offtopic.Configuration.instance.loadDefaults()
|
||||
offtopic.curator.CuratorPool.prepare(Configuration.instance.zookeepers)
|
||||
offtopic.curator.CuratorPool.prepare(System.getProperty('zookeepers') ?: Configuration.instance.zookeepers)
|
||||
module HandlebarsModule
|
||||
module JacksonModule
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue