makefile: added some helpers

This commit is contained in:
RhodeCode Admin 2023-10-20 11:49:45 +02:00
parent b3ef7ac244
commit 33443e229e

View file

@ -16,6 +16,7 @@ clean:
find . -type f \( -iname '*.c' -o -iname '*.pyc' -o -iname '*.so' -o -iname '*.orig' \) -exec rm '{}' ';'
find . -type d -name "build" -prune -exec rm -rf '{}' ';'
.PHONY: test
## run test-clean and tests
test:
@ -116,6 +117,7 @@ build:
.PHONY: dev-env
## make dev-env based on the requirements files and install develop of packages
## Cleanup: pip freeze | grep -v "^-e" | grep -v "@" | xargs pip uninstall -y
dev-env:
pip install build virtualenv
pushd ../rhodecode-vcsserver/ && make dev-env && popd
@ -129,10 +131,11 @@ dev-env:
dev-srv:
pserve --reload .dev/dev.ini
.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
gunicorn --workers=2 --paste .dev/dev.ini --bind=0.0.0.0:10020 --config=.dev/gunicorn_config.py
# Default command on calling make