pg_orrery/docs/Makefile
Ryan Malloy a78e8eb27c README v0.2.0 rewrite and docs deployment infrastructure
README covers all 57 functions across 9 domains with quick-start
examples, capability matrix, body ID tables, and performance benchmarks.
Links to Starlight docs site for detailed reference.

Adds Docker Compose deployment for docs site behind caddy-docker-proxy
with dev/prod modes and Vite HMR support through reverse proxy.
2026-02-16 07:09:37 -07:00

33 lines
641 B
Makefile

.PHONY: dev prod build down logs clean restart
COMPOSE = docker compose
# Start in development mode with hot-reload
dev:
$(COMPOSE) -f docker-compose.yml -f docker-compose.dev.yml up -d --build
@$(COMPOSE) -f docker-compose.yml -f docker-compose.dev.yml logs -f
# Start in production mode (static build served by Caddy)
prod:
$(COMPOSE) up -d --build
@$(COMPOSE) logs --tail=30
# Build image without starting
build:
$(COMPOSE) build
# Stop services
down:
$(COMPOSE) down
# Tail logs
logs:
$(COMPOSE) logs -f
# Stop and remove volumes
clean:
$(COMPOSE) down -v --remove-orphans
# Restart in production mode
restart: down prod