# HG changeset patch # User RhodeCode Admin # Date 2023-07-17 12:02:55 # Node ID 43468349cc657b318f87c9c569afdfa6cd6dab6f # Parent 508a6554203a24c8f1fdc825d9805e52e28d175b makefiles: added gunicorn launch command diff --git a/Makefile b/Makefile --- a/Makefile +++ b/Makefile @@ -1,5 +1,7 @@ +# required for pushd to work.. #SHELL = /bin/bash + # set by: PATH_TO_OUTDATED_PACKAGES=/some/path/outdated_packages.py OUTDATED_PACKAGES = ${PATH_TO_OUTDATED_PACKAGES} @@ -30,7 +32,8 @@ test-clean: test-only: PYTHONHASHSEED=random \ py.test -x -vv -r xw -p no:sugar \ - --cov-report=term-missing --cov-report=html --cov=vcsserver vcsserver + --cov-report=term-missing --cov-report=html \ + --cov=vcsserver vcsserver .PHONY: pip-packages @@ -60,6 +63,11 @@ dev-srv: pserve --reload .dev/dev.ini +.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 --worker-class=sync --threads=1 --config=configs/gunicorn_config.py --timeout=120 + # Default command on calling make .DEFAULT_GOAL := show-help