Update docs to the new CLI patterns
This commit is contained in:
parent
523e271183
commit
a7d829c618
10 changed files with 112 additions and 141 deletions
|
|
@ -13,13 +13,17 @@
|
|||
export an FLASKR_SETTINGS environment variable
|
||||
pointing to a configuration file.
|
||||
|
||||
2. initialize the database with this command:
|
||||
2. Instruct flask to use the right application
|
||||
|
||||
flask --app=flaskr initdb
|
||||
export FLASK_APP=flaskr
|
||||
|
||||
3. now you can run flaskr:
|
||||
3. initialize the database with this command:
|
||||
|
||||
flask --app=flaskr run
|
||||
flask initdb
|
||||
|
||||
4. now you can run flaskr:
|
||||
|
||||
flask run
|
||||
|
||||
the application will greet you on
|
||||
http://localhost:5000/
|
||||
|
|
|
|||
|
|
@ -14,13 +14,17 @@
|
|||
export an MINITWIT_SETTINGS environment variable
|
||||
pointing to a configuration file.
|
||||
|
||||
2. tell flask about the right application:
|
||||
|
||||
export FLASK_APP=minitwit
|
||||
|
||||
2. fire up a shell and run this:
|
||||
|
||||
flask --app=minitwit initdb
|
||||
flask initdb
|
||||
|
||||
3. now you can run minitwit:
|
||||
|
||||
flask --app=minitwit run
|
||||
flask run
|
||||
|
||||
the application will greet you on
|
||||
http://localhost:5000/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue