Documentation for the CLI commands of the launch.py file.
Each command needs to be run from inside the pipenv environment:
pipenv run python launch.py [args]
Creates all tables defined in the app.
pipenv run python launch.py initdb
-v
|--verbose
: Print SQL statements when creating models.
Drops all tables defined in the app.
pipenv run python launch.py dropdb
-v
|--verbose
: Print SQL statements when dropping models.
Run the API.
pipenv run python launch.py runserver
-h {host}
|--host {host}
: Host to run the API on. Default:127.0.0.1
.-p {port}
|--port {port}
: Port to run the API on. Default:5000
.-d
|--debug
: Run server in debug mode.-i
|--initdb
: Create models before running the API. Equivalent of running theinitdb
command.-v
|--verbose
: Set logging to DEBUG instead of INFO.