gunicorn

gunicorn

TLDR

Run Python web app

>_ gunicorn [import.path:app_object]
copy

Listen on port 8080 on localhost

>_ gunicorn --bind [localhost]:[8080] [import.path:app_object]
copy

Turn on live reload

>_ gunicorn --reload [import.path:app_object]
copy

Use 4 worker processes for handling requests

>_ gunicorn --workers [4] [import.path:app_object]
copy

Use 4 worker threads for handling requests

>_ gunicorn --threads [4] [import.path:app_object]
copy

Run app over HTTPS

>_ gunicorn --certfile [cert.pem] --keyfile [key.pem] [import.path:app_object]
copy

Copied to clipboard
free 100$ digital ocean credit