Simple command line utility to run Bjoern WSGI
Kapustlo c934f85217 exit > sys.exit | 2 лет назад | |
---|---|---|
bjcli | 2 лет назад | |
scripts | 2 лет назад | |
tests | 2 лет назад | |
.gitignore | 2 лет назад | |
LICENSE | 2 лет назад | |
README.md | 2 лет назад | |
requirements.txt | 2 лет назад | |
setup.py | 2 лет назад |
bjcli is a simple command line utility to run Bjoern WSGI server
pip install bjcli
bjcli -w 4 -i 127.0.0.1 -p 8088 app.wsgi:application
bjcli -w 4 -i unix:/path/to/socket app.wsgi:application
Examples above would import application from app.wsgi and pass it to Bjoern
Argument | Description | Required | Default | Type |
---|---|---|---|---|
-w | Number of workers | False | 1 | int |
-i | Host | False | 127.0.0.1 | str |
-p | Port. If left blank and the host is an IP address, 8088 is assigned | False | None | None/int |
module:wsgi_app (first positional) | Module containing "wsgi_app" (module attr name after ":") | True | - | module |