technomancy/leiningen — Issue #379: Configuration Management
Author: JulianBirch
Created: 2012-01-25 19:33:38+00:00
State: open

Apologies if this is a bit vague, but I thought the idea was worth suggesting,

I'm starting with the following assumptions:
* we'd like to use lein to run things in production
* we prefer Clojure as a data format to alternatives
* it's desirable to make any solution work on Heroku and similar services

So, a proposal: add an environment variable LEIN_CONFIG. Say the value is "live". Then lein would read config/live.clj and get a hashmap. It would then merge this with the project. This would then be available to whatever plugins were used to run the application on live.

Hope you like the idea.