set FLASK_APP via env for portability across shells

this does not work on fish (https://fishshell.com):
$ FLASK_APP=hello.py flask run

while this works (hopefully) on any shell:
$ env FLASK_APP=hello.py flask run
This commit is contained in:
Radovan Bast 2018-05-24 14:57:11 +02:00
parent 54869a0017
commit 4ce44340d4

View file

@ -38,7 +38,7 @@ A Simple Example
.. code-block:: text
$ FLASK_APP=hello.py flask run
$ env FLASK_APP=hello.py flask run
* Serving Flask app "hello"
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)