Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 637 Bytes

gunicorn.md

File metadata and controls

30 lines (20 loc) · 637 Bytes

Gunicorn

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

Cheatsheet

Sample configuration

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"

References