Skip to content
Myr

set FLASK_APP via env for portability across shells

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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

authored by Radovan Bast · committed by Radovan Bast · parent 54869a0 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:README.rst+1 added-1 removed
36 unmodified lines
37 return 'Hello, World!'3839.. code-block:: text4041 $ FLASK_APP=hello.py flask run41 $ env FLASK_APP=hello.py flask run42 * Serving Flask app "hello"43 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)4445
31 unmodified lines