擅长:python、mysql、java
<p>您可以将导出行添加到~/.bashrc。每次启动一个新的shell时,导出行将自动执行一次,因此FLASK_ENV的默认值将始终为development。</p>
<pre><code>echo "export FLASK_ENV=development" >> ~/.bashrc
source ~/.bashrc
</code></pre>
<p>从bash手册页:</p>
<blockquote>
<p>When an interactive shell that is not a login shell is started, bash
reads and executes commands from ~/.bashrc</p>
</blockquote>