# HG changeset patch # User RhodeCode Admin # Date 2024-05-22 13:37:44 # Node ID 9d0625b8f9a12916fce535186e018273fda37007 # Parent 0970c42debd9f1e34b6c6994567d017dedccc4b0 makefile: added workers=n to gunicorn startup command diff --git a/Makefile b/Makefile --- a/Makefile +++ b/Makefile @@ -91,11 +91,13 @@ sh: 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 ## run gunicorn multi process workers dev-srv-g: - gunicorn --workers=4 --paste .dev/dev.ini --bind=0.0.0.0:10010 --config=.dev/gunicorn_config.py + gunicorn --paste=.dev/dev.ini --bind=0.0.0.0:10010 --config=.dev/gunicorn_config.py --reload --workers=$(workers) # Default command on calling make