33 lines
636 B
Makefile
33 lines
636 B
Makefile
COMPOSE ?= docker compose
|
|
COMPOSE_DEV = $(COMPOSE) -f docker-compose.dev.yml
|
|
|
|
.PHONY: dev dev-up dev-down dev-logs test test-docker init-db seed-demo reminders
|
|
|
|
dev:
|
|
uvicorn app.main:app --reload
|
|
|
|
# Full app in Docker with bind mounts and auto-reload.
|
|
dev-up:
|
|
$(COMPOSE_DEV) up --build
|
|
|
|
dev-down:
|
|
$(COMPOSE_DEV) down
|
|
|
|
dev-logs:
|
|
$(COMPOSE_DEV) logs -f app
|
|
|
|
test:
|
|
pytest -q
|
|
|
|
# Runs the suite inside Docker, independent of the host Python environment.
|
|
test-docker:
|
|
$(COMPOSE_DEV) --profile test run --rm tests
|
|
|
|
init-db:
|
|
python -m app.cli init-db
|
|
|
|
seed-demo:
|
|
python -m app.cli seed-demo
|
|
|
|
reminders:
|
|
python -m app.cli send-reminders
|