Unlike more general of our libraries (like compojure-api and ring-swagger) this project is primarily intended for use in Metosin's projects. Feel free to use, but don't expect full support.
(ns backend.system
(:require [maailma.core :as m]))
(defn system [override]
(let [env (m/build-config
(m/resource "config-defaults.edn")
(m/env "prefix")
(m/env-var "SERVER_PORT" [:http :port])
(m/properties "prefix")
(m/file "./config-local.edn")
override)]
...))
Add reader options to resource
and file
calls:
(ig/load-namespaces
(m/build-config
(m/resource "config.edn" {:readers {'ig/ref ig/ref}})
(m/file "config-local.edn" {:readers {'ig/ref ig/ref}})))
(Not supported with read-config!
function)
Copyright © 2015-2018 Metosin Oy.
Distributed under the Eclipse Public License, the same as Clojure.
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close