Document deploy via github
This commit is contained in:
parent
6ba9bc325c
commit
b89ce1f2c1
8
Makefile
8
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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user