server#
This subcommand contains functionality that is related to the api server.
$ scf server -h
Usage: scf server [OPTIONS] COMMAND [ARGS]...
Options:
-h, --help Show this message and exit.
Commands:
run Starts the uvicorn server
run#
Starts the api server.
$ scf server run -h
Usage: scf server run [OPTIONS]
Starts the uvicorn server
Options:
--host TEXT The host ip to bind the socket to. [default:
0.0.0.0]
--port INTEGER The port to which the socket should listen to.
[default: 8000]
-w, --workers INTEGER The number of workers that should be started
[default: 2]
-h, --help Show this message and exit.
example#
Start the server on localhost:5000 with 2 worker processes:
scf server run --host 127.0.0.1 --port 5000 --workers 2