-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (32 loc) · 1.2 KB
/
Copy pathMakefile
File metadata and controls
45 lines (32 loc) · 1.2 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
# Host running the RAG services (SSH alias or user@host). The real value lives in
# the gitignored deploy/deploy.env (copy it from deploy/deploy.env.example).
# Override per invocation with: make reindex DEPLOY_HOST=myhost
-include deploy/deploy.env
DEPLOY_HOST ?= your-server
.PHONY: build check fmt fmt-check clippy test run-ingest run-serve run-mcp reindex reconcile-ledger all
all: fmt-check clippy test
build:
cargo build --workspace
check:
cargo check --workspace
fmt:
cargo fmt --all
fmt-check:
cargo fmt --all -- --check
clippy:
cargo clippy --workspace --all-targets -- -D warnings
test:
cargo test --workspace
run-ingest:
cargo run -p rag-ingest --
run-serve:
cargo run -p rag-serve --
run-mcp:
cargo run -p rag-mcp --
# Trigger an immediate corpus re-index on the server (the timer otherwise runs every 15 min).
reindex:
ssh $(DEPLOY_HOST) systemctl --user start rag-sync.service && echo "re-index triggered"
# Trigger an immediate ledger reconcile on the server (the timer otherwise runs every 15 min;
# rag-serve also fires this automatically after each ledger write).
reconcile-ledger:
ssh $(DEPLOY_HOST) systemctl --user start rag-ledger-sync.service && echo "ledger reconcile triggered"