makefile 1.1 and permissions 1.0
This commit is contained in:
16
makefile
16
makefile
@@ -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
|
||||
Reference in New Issue
Block a user