Simple dev target

This commit is contained in:
decentral1se
2021-06-11 14:13:55 +02:00
parent 14c810f436
commit 8ef45fd03e
2 changed files with 6 additions and 3 deletions

View File

@ -2,4 +2,9 @@
.PHONY: run
run:
@uvicorn keycloak_collective_portal:app --reload
@if [ ! -d ".venv" ]; then \
python3 -m venv .venv && \
.venv/bin/pip install -U pip setuptools wheel poetry && \
.venv/bin/poetry install --dev; \
fi
.venv/bin/poetry run uvicorn keycloak_collective_portal:app --reload