Difference between revisions of "Gunicorn"
Jump to navigation
Jump to search
Line 10: | Line 10: | ||
--bind 0.0.0.0:${GUNICORN_PORT} \ | --bind 0.0.0.0:${GUNICORN_PORT} \ | ||
--timeout ${GUNICORN_TIMEOUT} \ | --timeout ${GUNICORN_TIMEOUT} \ | ||
− | --workers ${GUNICORN_WORKERS} \ | + | [[--workers]] ${GUNICORN_WORKERS} \ |
--log-level DEBUG \ | --log-level DEBUG \ | ||
--capture-output \ | --capture-output \ |
Revision as of 15:06, 26 December 2022
wikipedia:gunicorn The Gunicorn "Green Unicorn" is a Python Web Server Gateway Interface (WSGI) HTTP server
- Installation:
pip3 install gunicorn
gunicorn --help
Dockerfile
CMD example:
CMD gunicorn api_handler:app \ --bind 0.0.0.0:${GUNICORN_PORT} \ --timeout ${GUNICORN_TIMEOUT} \ --workers ${GUNICORN_WORKERS} \ --log-level DEBUG \ --capture-output \ --reload
Related
See also
Advertising: