-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
63 lines (47 loc) · 1.43 KB
/
Copy pathMakefile
File metadata and controls
63 lines (47 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
.PHONY: help install bootstrap up down logs ps restart migrate test lint fmt clean shell-pg shell-redis
# Default target
help:
@echo "HERALD — Make targets"
@echo " install uv sync (local dev deps)"
@echo " bootstrap Create DBs/users/extensions and run migrations"
@echo " up docker compose up -d (all services)"
@echo " down docker compose down"
@echo " logs Tail logs for all services (follow)"
@echo " ps docker compose ps"
@echo " restart Restart the app services (poller/extractor/mcp)"
@echo " migrate Run alembic migrations against Postgres target"
@echo " test Run pytest"
@echo " lint Run ruff check"
@echo " fmt Run ruff format"
@echo " shell-pg psql into bundled postgres"
@echo " shell-redis redis-cli into bundled redis"
install:
uv sync --all-extras
bootstrap:
./scripts/bootstrap_db.sh
up:
docker compose up -d
down:
docker compose down
logs:
docker compose logs -f
ps:
docker compose ps
restart:
docker compose restart feed_poller extractor mcp_server
migrate:
uv run alembic -x db=postgres upgrade head
migrate-timescale:
uv run alembic -x db=timescale upgrade head
test:
uv run pytest -v
lint:
uv run ruff check .
fmt:
uv run ruff format .
shell-pg:
docker compose exec postgres psql -U $${POSTGRES_USER:-herald} -d $${POSTGRES_DB:-herald}
shell-redis:
docker compose exec redis redis-cli
clean:
docker compose down -v