From 112de0ec6da966e1f5d4106fb250da4051f587f5 Mon Sep 17 00:00:00 2001 From: RhodeCode Admin Date: Wed, 22 May 2024 15:36:20 +0200 Subject: [PATCH] makefile: allow starting gunicorn with workers=N command --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f604cfd1..18979009 100644 --- a/Makefile +++ b/Makefile @@ -144,11 +144,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 --paste .dev/dev.ini --bind=0.0.0.0:10020 --config=.dev/gunicorn_config.py --timeout=120 --reload + gunicorn --paste=.dev/dev.ini --bind=0.0.0.0:10020 --config=.dev/gunicorn_config.py --timeout=120 --reload --workers=$(workers) # Default command on calling make