This commit is contained in:
mco-system
2023-04-06 01:14:50 +11:00
parent e72f8f4e64
commit 9ebcbbac56
28 changed files with 1339 additions and 181 deletions

View File

@@ -1,4 +1,32 @@
.PHONY: install
.PHONY: clean install run stop
install:
echo "We Make P0RN"
set -e ;\
THSF_DIR=$$(pwd); \
echo [+] Déploiement dans $$THSF_DIR; \
python3 -m venv thsf_venv; \
. thsf_venv/bin/activate; \
pip install -r requirements.txt ;\
pip install . ;\
pip install gunicorn;
run:
set -e ;\
THSF_DIR=$$(pwd); \
echo [+] Démarrage dans $$THSF_DIR; \
. thsf_venv/bin/activate; \
thsf_venv/bin/gunicorn -D -p thsf.pid -w 4 -b 127.0.0.1:8042 'thsf:app'
stop:
-set -e;\
kill -15 $$(cat thsf.pid); \
rm thsf.pid
clean:
-set -e ;\
rm -Rf ./build ;\
rm -Rf ./src/thsf.egg-info; \
. thsf_venv/bin/activate; \
pip uninstall thsf -y
all: clean stop install run