# HG changeset patch # User RhodeCode Admin # Date 2024-05-22 13:36:20 # Node ID c583e3ba2cb206c52d55806feaf6f54307c5fc53 # Parent 64d7f92c7feab5b4a8384d0cbc2df180b5b40461 makefile: allow starting gunicorn with workers=N command diff --git a/Makefile b/Makefile --- 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