-
Notifications
You must be signed in to change notification settings - Fork 89
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (34 loc) · 1.52 KB
/
Copy pathMakefile
File metadata and controls
44 lines (34 loc) · 1.52 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
# Veldra — one-command management.
COMPOSE = docker compose -f deploy/docker-compose.yml
.PHONY: up down logs ps restart build migrate dev help quickstart
help:
@echo "Veldra:"
@echo " make quickstart zero-to-running: check prereqs, pull models, start, wait for health"
@echo " make up build + start the whole stack (UI+API → http://localhost:8000)"
@echo " make down stop everything"
@echo " make logs tail the app logs"
@echo " make restart restart just the app"
@echo " make dev run backend + web with hot-reload (host mode)"
quickstart: ## One command from zero to a running app.
@bash scripts/quickstart.sh
# Auto-create .env from example.env on first run (every target that needs it depends
# on this, so `make up` / `make dev` / `make quickstart` just work with no .env present).
.env:
@cp example.env .env && echo "→ created .env from example.env (edit it to set your provider / keys)"
up: .env ## Build + start the entire stack in one command.
$(COMPOSE) up --build -d
@echo ""
@echo " Veldra is up → http://localhost:8000 (needs Ollama running on the host)"
down:
$(COMPOSE) down
logs:
$(COMPOSE) logs -f app
ps:
$(COMPOSE) ps
restart:
$(COMPOSE) up -d --build app
# Host-mode dev (hot reload): infra in Docker, app + web on the host.
dev: .env
$(COMPOSE) up -d postgres redis minio createbuckets
uv run python -m veldra_app.db migrate
@echo "Run in two terminals: uv run uvicorn veldra_app.main:app --reload | (cd apps/web && npm run dev)"