title: Can't access environment variables in leiningen project.clj with environ
body: <p>I am trying to use environ to access environment variables specified in my project.clj :dev profile. This looks like a nice way to set up different configuration options, but I can't seem to get it to work. My project.clj entry looks like this:</p>
  
  <pre><code>:profiles
  {:dev {:dependencies [[javax.servlet/servlet-api "2.5"]
                        [ring-mock "0.1.5"]]
         :env {:foo "FOO" :bar "BAR"}}}
  </code></pre>
  
  <p>If I run <code>lein repl</code> and require then enter (with <code>in-ns</code>) a namespace from my project, <code>environ.core/env</code> just returns nil:</p>
  
  <pre><code>(environ.core/env :foo)
  nil
  </code></pre>
  
  <p>Adding an :env entry to the :user profile in .lein/profiles.clj also doesn't work. What am I doing wrong?</p>