Last active
April 26, 2024 08:39
-
-
Save cweedall/72dc82bafb86d14473ff9e766c4e845d to your computer and use it in GitHub Desktop.
`waitress` / `waitress-serve` is `gunicorn` alternative for Python-based WSGI web app (like Django) on Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run a WSGI web app (like Django) on Windows | |
# see: https://stackoverflow.com/a/48542020/7363740 | |
# Install if necessary | |
conda install waitress | |
pip install waitress | |
# Replace standard `gunicorn` command with `waitress-serve` | |
# for example: gunicorn --listen=*:8000 myapp.wsgi:application | |
waitress-serve --listen=*:8000 myapp.wsgi:application |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment