I would like to have a pair ofdb-specmaps with my database configuration for development and production.
But I can't find an easy way to detect the current execution environment. Need something like (defn db-spec [] (if (is-dev?) { dev-spec-here } { prod-spec-here })).
Maybe it can detect the current lein profile. No matter how I ask to google. Can't find how.
is-dev?function to give your desired behavior? If so, I think you need to give a little more details about how this application is intended to be deployed and run.