forked from orbit-oss/flask
Style the flask command consistently (#2120)
It's done like this in other parts of this doc.
This commit is contained in:
parent
ccb562854e
commit
0ba1a872b7
1 changed files with 2 additions and 2 deletions
|
|
@ -139,8 +139,8 @@ This could be a file named :file:`autoapp.py` with these contents::
|
||||||
from yourapplication import create_app
|
from yourapplication import create_app
|
||||||
app = create_app(os.environ['YOURAPPLICATION_CONFIG'])
|
app = create_app(os.environ['YOURAPPLICATION_CONFIG'])
|
||||||
|
|
||||||
Once this has happened you can make the flask command automatically pick
|
Once this has happened you can make the :command:`flask` command automatically
|
||||||
it up::
|
pick it up::
|
||||||
|
|
||||||
export YOURAPPLICATION_CONFIG=/path/to/config.cfg
|
export YOURAPPLICATION_CONFIG=/path/to/config.cfg
|
||||||
export FLASK_APP=/path/to/autoapp.py
|
export FLASK_APP=/path/to/autoapp.py
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue