Browse Source

Merge pull request #2603 from greyli/patch-8

Update cli help for FLASK_ENV
pull/2608/merge
David Lord 7 years ago committed by GitHub
parent
commit
83b5625f0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      flask/cli.py

6
flask/cli.py

@ -818,12 +818,12 @@ A general utility script for Flask applications.
Provides commands from Flask, extensions, and the application. Loads the
application defined in the FLASK_APP environment variable, or from a wsgi.py
file. Debug mode can be controlled with the FLASK_DEBUG
environment variable.
file. Setting the FLASK_ENV environment variable to 'development' will enable
debug mode.
\b
{prefix}{cmd} FLASK_APP=hello.py
{prefix}{cmd} FLASK_DEBUG=1
{prefix}{cmd} FLASK_ENV=development
{prefix}flask run
""".format(
cmd='export' if os.name == 'posix' else 'set',

Loading…
Cancel
Save