# HG changeset patch # User RhodeCode Admin # Date 2024-05-29 07:47:57 # Node ID b4277c1120635cadfe6981c0f1b1b54edc025c47 # Parent 8f7adf4a43e4952062363223a5ccfd774055d8cb fix(configs): removed waitress as a default runner for web service on development. One of the big issues discovered receantly was due to waitress vs gunicorn differences on handling requests. Since gunicorn has a nice dev mode with code reloader we should use it as a default runner so we can avoid such issues in the past where dev setup runned different workers than production. diff --git a/Makefile b/Makefile --- a/Makefile +++ b/Makefile @@ -139,15 +139,10 @@ sh: make dev-sh -.PHONY: dev-srv -## run develop server instance, docker exec -it $(docker ps -q --filter 'name=dev-enterprise-ce') /bin/bash -dev-srv: - pserve --reload .dev/dev.ini - ## Allows changes of workers e.g make dev-srv-g workers=2 workers?=1 -.PHONY: dev-srv-g +.PHONY: dev-srv ## run gunicorn multi process workers dev-srv-g: gunicorn --paste=.dev/dev.ini --bind=0.0.0.0:10020 --config=.dev/gunicorn_config.py --timeout=120 --reload --workers=$(workers) diff --git a/configs/development.ini b/configs/development.ini --- a/configs/development.ini +++ b/configs/development.ini @@ -31,23 +31,6 @@ debug = true host = 127.0.0.1 port = 10020 -; ################################################## -; WAITRESS WSGI SERVER - Recommended for Development -; ################################################## - -; use server type -use = egg:waitress#main - -; number of worker threads -threads = 5 - -; MAX BODY SIZE 100GB -max_request_body_size = 107374182400 - -; Use poll instead of select, fixes file descriptors limits problems. -; May not work on old windows systems. -asyncore_use_poll = true - ; ########################### ; GUNICORN APPLICATION SERVER @@ -56,7 +39,7 @@ asyncore_use_poll = true ; run with gunicorn --paste rhodecode.ini --config gunicorn_conf.py ; Module to use, this setting shouldn't be changed -#use = egg:gunicorn#main +use = egg:gunicorn#main ; Prefix middleware for RhodeCode. ; recommended when using proxy setup.