33 lines
628 B
Makefile
33 lines
628 B
Makefile
COMPOSE ?= docker compose
|
|
COMPOSE_DEV = $(COMPOSE) -f docker-compose.dev.yml
|
|
|
|
.PHONY: dev dev-up dev-down dev-logs check 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
|
|
|
|
# Compile check plus the test suite, inside Docker.
|
|
check:
|
|
$(COMPOSE_DEV) --profile check run --rm --build checks
|
|
|
|
test-docker:
|
|
$(MAKE) check
|
|
|
|
init-db:
|
|
python -m app.cli init-db
|
|
|
|
seed-demo:
|
|
python -m app.cli seed-demo
|
|
|
|
reminders:
|
|
python -m app.cli send-reminders
|