Name: maailma
Owner: Metosin
Description: Opinionated environment variables library
Created: 2015-04-06 16:37:05.0
Updated: 2018-03-28 12:01:31.0
Pushed: 2018-03-28 12:02:07.0
Homepage: http://metosin.github.io/maailma/
Size: 87
Language: Clojure
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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.
backend.system
require [maailma.core :as m]))
n system [override]
et [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:
load-namespaces
/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.