This commit is contained in:
@@ -17,9 +17,12 @@
|
||||
(def read-config (doerg-config/make-read-config ::p/config))
|
||||
|
||||
(def default
|
||||
(-> "net/deertopia/publisher/config.edn"
|
||||
io/resource
|
||||
(read-config (System/getProperty "net.deertopia.publisher.config")
|
||||
(System/getenv "DOERG_PUBLISHER_CONFIG"))))
|
||||
(read-config
|
||||
;; Default config.
|
||||
(io/resource "net/deertopia/publisher/config.edn")
|
||||
;; 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)
|
||||
|
||||
Reference in New Issue
Block a user