From 88dd8cc84953269eee32fa903a4c551bdacdc4b2 Mon Sep 17 00:00:00 2001 From: mco-system Date: Thu, 6 Apr 2023 22:22:49 +1100 Subject: [PATCH] wip beta --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a10602a..804ac2e 100644 --- a/Makefile +++ b/Makefile @@ -9,23 +9,25 @@ install: pip install -r requirements.txt ;\ pip install . ;\ pip install gunicorn; \ - sudo chown apache:apache $$THSF_DIR run: set -e ;\ THSF_DIR=$$(pwd); \ echo [+] DĂ©marrage dans $$THSF_DIR; \ . thsf_venv/bin/activate; \ - sudo -u apache thsf_venv/bin/gunicorn -D -p thsf.pid -w 4 -b 127.0.0.1:8042 'thsf:app' + thsf_venv/bin/gunicorn -D -p thsf.pid -w 4 -b 127.0.0.1:8042 'thsf:app' stop: -set -e;\ THSF_DIR=$$(pwd); \ + echo [+] ArrĂȘt dans $$THSF_DIR; \ kill -15 $$(cat $$THSF_DIR/thsf.pid); \ rm thsf.pid clean: -set -e ;\ + THSF_DIR=$$(pwd); \ + echo [+] Nettoyage dans $$THSF_DIR; \ rm -Rf ./build ;\ rm -Rf ./src/thsf.egg-info; \ . thsf_venv/bin/activate; \