makefile 1.1 and permissions 1.0

This commit is contained in:
2025-10-05 02:09:28 +03:00
parent 46c6e1cd94
commit 6db14b2329
6 changed files with 119 additions and 15 deletions

View File

@@ -1,18 +1,18 @@
VENV=./venv/bin/python
VENV=source ./.venv/bin/activate;
ALEMBIC=alembic -c ./server/database/alembic/alembic.ini
.PHONY: test run migrate_head migrate_down migrate_history migrate_current migrate
test:
pytest -c ./server/testing/pytest.ini ./server/testing/tests/
$(VENV) pytest -c ./server/testing/pytest.ini ./server/testing/tests/
run:
$(VENV) run.py
$(VENV) python run.py
migrate_head:
$(ALEMBIC) upgrade head
$(VENV) $(ALEMBIC) upgrade head
migrate_down:
$(ALEMBIC) downgrade -1
$(VENV) $(ALEMBIC) downgrade -1
migrate_history:
$(ALEMBIC) history
$(VENV) $(ALEMBIC) history
migrate_current:
$(ALEMBIC) current
$(VENV) $(ALEMBIC) current
migrate:
$(ALEMBIC) revision --autogenerate
$(VENV) $(ALEMBIC) revision --autogenerate