Skip to content
Myr

Merge pull request #2315 from leviroth/powershell-docs

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

Added documentation for PowerShell environment variables

authored by David Lord · committed by GitHub · parents 5b0b971, 954d9ca · Browse files · 1 file+8 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+8 added−1 removed

  • other:+8 added−1 removed

1 file+8 added−1 removed

modified:docs/quickstart.rst+8 added-1 removed
48 unmodified lines
49 $ export FLASK_APP=hello.py50 $ flask run51 * Running on http://127.0.0.1:5000/5253If you are on Windows you need to use ``set`` instead of ``export``.53If you are on Windows, the environment variable syntax depends on command line54interpreter. On Command Prompt::5556 C:\path\to\app>set FLASK_APP=hello.py5758And on PowerShell::5960 PS C:\path\to\app> $env:FLASK_APP = "hello.py"6162Alternatively you can use :command:`python -m flask`::6364 $ export FLASK_APP=hello.py65 $ python -m flask run
784 unmodified lines