update Makefile

This commit is contained in:
Sam 2022-04-23 11:21:14 +02:00
parent 56bd024dde
commit a43b538aae
2 changed files with 6 additions and 5 deletions

View File

@ -89,11 +89,11 @@ html:
install-db: install-db:
psql -U postgres -f db/create.sql psql -U postgres -f db/create.sql
$(FLASK) db upgrade --directory $(MIGRATIONS) $(FTCLI) db upgrade
init-db: init-db:
$(FLASK) drop-db $(FTCLI) db drop
$(FLASK) db upgrade --directory $(MIGRATIONS) $(FTCLI) db upgrade
install: install-client install-python install: install-client install-python
@ -164,7 +164,7 @@ serve-python-dev:
$(FLASK) run --with-threads -h $(HOST) -p $(PORT) --cert=adhoc $(FLASK) run --with-threads -h $(HOST) -p $(PORT) --cert=adhoc
set-admin: set-admin:
$(FLASK) users set-admin $(USERNAME) $(FTCLI) users set-admin $(USERNAME)
test-e2e: test-e2e:
$(PYTEST) e2e --driver firefox $(PYTEST_ARGS) $(PYTEST) e2e --driver firefox $(PYTEST_ARGS)
@ -185,4 +185,4 @@ type-check:
$(MYPY) fittrackee $(MYPY) fittrackee
upgrade-db: upgrade-db:
$(FLASK) db upgrade --directory $(MIGRATIONS) $(FTCLI) db upgrade

View File

@ -26,6 +26,7 @@ PYTEST = $(VENV)/bin/py.test -c pyproject.toml -W ignore::DeprecationWarning
GUNICORN = $(VENV)/bin/gunicorn GUNICORN = $(VENV)/bin/gunicorn
BLACK = $(VENV)/bin/black BLACK = $(VENV)/bin/black
MYPY = $(VENV)/bin/mypy MYPY = $(VENV)/bin/mypy
FTCLI = $(VENV)/bin/ftcli
# Node env # Node env
NODE_MODULES = $(PWD)/fittrackee_client/node_modules NODE_MODULES = $(PWD)/fittrackee_client/node_modules