Gunicorn stands for ‘Green Unicorn’ and is a Python WSGI HTTP Server for UNIX. It has no dependencies and can be installed with pip:
pip install gunicorn
Here is a sample gunicorn.conf.py
:
import multiprocessing
workers = multiprocessing.cpu_count() * 2 + 1
# bind to a socket
bind = "unix:/path/to/myproject.sock"
# or to an IP address
bind = "192.168.x.y:8000"
- Understanding Gunicorn
- [docs.gunicorn.org][https://docs.gunicorn.org/en/stable/index.html]: Gunicorn documentation