How to use different env for different projects?
<p>I have two projects running on a server. I'm storing AWS_SECRET in env.</p>

<p>I set those env in my ~/.bash_profile. How do I make sure that one project gets the correct key? Can I set env only on project scope?</p>

<p>Thanks.</p>

<p><a href="https://github.com/kennethreitz/autoenv" rel="nofollow">Autoenv</a> is built for this for this exact purpose:</p>

<pre><code>pip install autoenv
echo 'AWS_SECRET="Secret1"' &gt; ./project1/.env
echo 'AWS_SECRET="Secret2"' &gt; ./project2/.env
</code></pre>

python unix