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