Add prefix for all commands in documentation (#2877)
* Add prefix for commands in docs * Add prefix for commands in example's README
This commit is contained in:
parent
b9b88b0cdf
commit
21b0aa6dd8
19 changed files with 112 additions and 112 deletions
|
|
@ -91,14 +91,14 @@ Using Applications
|
|||
|
||||
To run such an application, you can use the :command:`flask` command::
|
||||
|
||||
export FLASK_APP=myapp
|
||||
flask run
|
||||
$ export FLASK_APP=myapp
|
||||
$ flask run
|
||||
|
||||
Flask will automatically detect the factory (``create_app`` or ``make_app``)
|
||||
in ``myapp``. You can also pass arguments to the factory like this::
|
||||
|
||||
export FLASK_APP="myapp:create_app('dev')"
|
||||
flask run
|
||||
$ export FLASK_APP="myapp:create_app('dev')"
|
||||
$ flask run
|
||||
|
||||
Then the ``create_app`` factory in ``myapp`` is called with the string
|
||||
``'dev'`` as the argument. See :doc:`/cli` for more detail.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue