diff --git a/Makefile b/Makefile index eb54a1f..c473f77 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,6 @@ PYTHON = $(VENV)/bin/python FLASK = $(VENV)/bin/flask ISORT = $(VENV)/bin/isort BLACK = $(VENV)/bin/black -AFPY_SERVER = afpy_web all: install serve @@ -26,13 +25,10 @@ test: serve: env FLASK_APP=afpy.py FLASK_ENV=development $(FLASK) run -afpy: - ssh -t $(AFPY_SERVER) 'cd site && git pull' - ssh -t $(AFPY_SERVER) 'cd site && make install LANG=en_US.UTF-8' - ssh -t $(AFPY_SERVER) 'killall uwsgi-3.6 && /usr/local/etc/rc.d/uwsgi restart' - isort: $(ISORT) -rc .isort.cfg afpy.py tests.py black: $(VENV)/bin/black afpy.py tests.py + +.PHONY: all install clean check-outdated test serve isort black diff --git a/README.md b/README.md index a4f2839..c35d3e0 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,7 @@ d'abord. Si vous avez votre propre venv, un `FLASK_APP=afpy.py FLASK_ENV=development flask run` vous suffira. + ## Déployer -Pour publier lancez `make afpy`. - -Votre clé ssh publique doit être installée sur le serveur pour pouvoir déployer, et configurer la connexion ssh avec les informations fournies par les admins. +Pour publier il suffit de `git push`, une action github s'occupe de la mise en prod.