forked from orbit-oss/flask
Add example for virtualenv integration in cli docs (#2234)
This commit is contained in:
parent
d04d36842b
commit
ec18fe9477
1 changed files with 12 additions and 0 deletions
12
docs/cli.rst
12
docs/cli.rst
|
|
@ -56,6 +56,18 @@ If you are constantly working with a virtualenv you can also put the
|
||||||
bottom of the file. That way every time you activate your virtualenv you
|
bottom of the file. That way every time you activate your virtualenv you
|
||||||
automatically also activate the correct application name.
|
automatically also activate the correct application name.
|
||||||
|
|
||||||
|
Edit the activate script for the shell you use. For example:
|
||||||
|
|
||||||
|
Unix Bash: ``venv/bin/activate``::
|
||||||
|
|
||||||
|
FLASK_APP=hello
|
||||||
|
export FLASK_APP
|
||||||
|
|
||||||
|
Windows CMD.exe: ``venv\Scripts\activate.bat``::
|
||||||
|
|
||||||
|
set "FLASK_APP=hello"
|
||||||
|
:END
|
||||||
|
|
||||||
Debug Flag
|
Debug Flag
|
||||||
----------
|
----------
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue