Difference between revisions of "Gunicorn"

From wikieduonline
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 11: Line 11:
 
   --timeout ${GUNICORN_TIMEOUT} \
 
   --timeout ${GUNICORN_TIMEOUT} \
 
   [[--workers]] ${GUNICORN_WORKERS} \
 
   [[--workers]] ${GUNICORN_WORKERS} \
   --log-level DEBUG \
+
   [[--log-level]] DEBUG \
 
   --capture-output \
 
   --capture-output \
 
   --reload
 
   --reload
  
  
 +
[[gunicorn --check-config]]
 +
 +
[[--statsd-host]]
 
  gunicorn [[--workers]]=1 [[--threads]]=2 --max-requests=2 test:app
 
  gunicorn [[--workers]]=1 [[--threads]]=2 --max-requests=2 test:app
  
Line 26: Line 29:
 
* {{web server}}
 
* {{web server}}
  
[[Category:Internet]]
+
[[Category:Gnunicorn]]
 +
[[Category:Web server]]

Latest revision as of 15:58, 26 December 2022

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 --check-config
--statsd-host
gunicorn --workers=1 --threads=2 --max-requests=2 test:app

Related[edit]

See also[edit]

Advertising: