members.lumbung.space/makefile
cellarspoon befbcd064d
All checks were successful
continuous-integration/drone/push Build is passing
get a deployment going
2022-01-10 14:22:33 +01:00

18 lines
431 B
Makefile

.DEFAULT: run
.PHONY: run redis deploy
run:
@if [ ! -d ".venv" ]; then \
python3 -m venv .venv && \
.venv/bin/pip install -U pip setuptools wheel poetry && \
.venv/bin/poetry install; \
fi
.venv/bin/poetry run uvicorn members_lumbung_space.main:app --reload
redis:
@docker run -p 6379:6379 --name redis -d redis:6-alpine
deploy:
@DOCKER_CONTEXT=lumbung.space docker stack deploy -c compose.yml members_lumbung_space