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; \