gunicorn
Python WSGI HTTP Server. More information: <https://gunicorn.org/>.
Install
- All systems
-
curl cmd.cat/gunicorn.sh
- Debian
-
apt-get install gunicorn
- Ubuntu
-
apt-get install gunicorn
- Arch Linux
-
pacman -S gunicorn
- Kali Linux
-
apt-get install gunicorn
- CentOS
-
yum install gunicorn
- Fedora
-
dnf install gunicorn
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install gunicorn
- Raspbian
-
apt-get install gunicorn
- Dockerfile
- dockerfile.run/gunicorn
Python WSGI HTTP Server. More information: <https://gunicorn.org/>.
-
Run Python web app:
gunicorn import.path:app_object
-
Listen on port 8080 on localhost:
gunicorn --bind localhost:8080 import.path:app_object
-
Turn on live reload:
gunicorn --reload import.path:app_object
-
Use 4 worker processes for handling requests:
gunicorn --workers 4 import.path:app_object
-
Use 4 worker threads for handling requests:
gunicorn --threads 4 import.path:app_object
-
Run app over HTTPS:
gunicorn --certfile cert.pem --keyfile key.pem import.path:app_object
© tl;dr; authors and contributors