I use environ as well. I don't use config files and don't think they're a 
great idea. Instead I use a simple config.clj that pulls stuff from environ 
into one big get-config map.

I use (or (env :env-var) "fallback-value") for each variable.

On Saturday, September 7, 2013 4:53:25 PM UTC-7, Alexandr Kurilin wrote:
>
> I'm curious to find out how you folks decided to organize configuration 
> for your Ring applications, assuming you also use configuration management 
> like Puppet/Ansiblet etc to deploy them.
>
> So far I've been using a combination of daemontools' envdir (through 
> runit) + weavejester's environ <https://github.com/weavejester/environ>for 
> things like db address, db password, cookie secret keys, logging level 
> etc. Each one is an individual file in root-only folder that runit envdirs 
> from.
>
> I honestly can't decide whether a single configuration file (YAML, EDN, 
> whatever) would be more appropriate for this scenario or if I should go 
> ahead and continue keeping each configuration value in its own file and use 
> env to load them.
>
> What are people's thoughts on this? Any reason why one or the other would 
> be better, or is there an even better option out there I'm not considering?
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to