| Paste number 73269: | config |
| Pasted by: | mmcgrana |
| When: | 5 months, 3 weeks ago |
| Share: | Tweet this! | http://paste.lisp.org/+1KJ9 |
| Channel: | #clojure |
| Paste contents: |
; what i'd like to do, conceptually
; boot.clj
(let [env (determine-env-from-cl)]
(binding [varname-accesible-from-myapp-config env]
(require 'myapp.config)))
; myapp.config
(def env varname-accesible-from-myapp-config)
(def shared-val :same-for-all-envs)
(def forked-val (if (= env :prod) :for-prod-only :for-all-else))Annotations for this paste:
| Annotation number 1: | untitled |
| Pasted by: | mmcgrana |
| When: | 5 months, 3 weeks ago |
| Share: | Tweet this! | http://paste.lisp.org/+1KJ9#1 |
| Paste contents: |
myapp.config -> myapp/config.clj