2021-06-11 11:54:05 +00:00
|
|
|
.DEFAULT: run
|
2021-06-11 22:53:57 +00:00
|
|
|
.PHONY: run redis
|
2021-06-11 11:54:05 +00:00
|
|
|
|
|
|
|
run:
|
2021-06-11 12:13:55 +00:00
|
|
|
@if [ ! -d ".venv" ]; then \
|
|
|
|
python3 -m venv .venv && \
|
|
|
|
.venv/bin/pip install -U pip setuptools wheel poetry && \
|
2021-06-16 07:51:38 +00:00
|
|
|
.venv/bin/poetry install; \
|
2021-06-11 12:13:55 +00:00
|
|
|
fi
|
2021-06-13 09:43:30 +00:00
|
|
|
.venv/bin/poetry run uvicorn keycloak_collective_portal.main:app --reload
|
2021-06-11 22:53:57 +00:00
|
|
|
|
|
|
|
redis:
|
|
|
|
@docker run -p 6379:6379 --name redis -d redis:6-alpine
|