This commit is contained in:
@@ -17,9 +17,12 @@
|
|||||||
(def read-config (doerg-config/make-read-config ::p/config))
|
(def read-config (doerg-config/make-read-config ::p/config))
|
||||||
|
|
||||||
(def default
|
(def default
|
||||||
(-> "net/deertopia/publisher/config.edn"
|
(read-config
|
||||||
io/resource
|
;; Default config.
|
||||||
(read-config (System/getProperty "net.deertopia.publisher.config")
|
(io/resource "net/deertopia/publisher/config.edn")
|
||||||
(System/getenv "DOERG_PUBLISHER_CONFIG"))))
|
;; Defaults set at build time, if any.
|
||||||
|
(System/getProperty "net.deertopia.publisher.config")
|
||||||
|
;; Config set at runtime.
|
||||||
|
(System/getenv "DOERG_PUBLISHER_CONFIG")))
|
||||||
|
|
||||||
(def ^:dynamic *cfg* default)
|
(def ^:dynamic *cfg* default)
|
||||||
|
|||||||
Reference in New Issue
Block a user