On Sat, Oct 2, 2010 at 22:46, Scott Jaderholm <jaderh...@gmail.com> wrote:

> On Sat, Oct 2, 2010 at 6:36 PM, Michael Ossareh <ossa...@gmail.com> wrote:
>
>> What is the recommended manner in which to let your application know its
>> on a dev machine?
>>
>
> I use an environment variable that determines which config (dev,
> production, test) gets loaded.
>
> APPNAME_CONFIG=development lein swank
>
> I don't know if it has issues in war deployments or such, I haven't done
> them. If someone knows of problems with this approach I'd be curious to hear
> them.
>
>
I ended up using (load-script) - it's the grungy solution in just the right
way :)

It gives me a config namespace, is read from arbitrary locations (provided
by a command line argument) and it contains clojure forms.

-- 
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

Reply via email to