Gunicorn

From wikieduonline
Revision as of 15:18, 26 December 2022 by Ant (talk | contribs)
Jump to navigation Jump to search

wikipedia:gunicorn The Gunicorn "Green Unicorn" is a Python Web Server Gateway Interface (WSGI) HTTP server


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


gunicorn --workers=1 --threads=2 --max-requests=2 test:app

Related

See also

Advertising: