-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
81 lines (65 loc) · 2.31 KB
/
Makefile
File metadata and controls
81 lines (65 loc) · 2.31 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
.PHONY: help dev stop restart status check install start start-background redis celery api services
# Default target
help:
@echo ""
@echo " AETHERA Service Management"
@echo " =========================="
@echo ""
@echo " Primary commands:"
@echo " make dev Start the full stack (Docker, DB, API, Celery, Frontend)"
@echo " make stop Stop everything gracefully"
@echo " make restart Stop then start"
@echo " make status Check which services are running"
@echo ""
@echo " Individual services:"
@echo " make api Start FastAPI only"
@echo " make celery Start Celery worker only"
@echo " make redis Start Redis only"
@echo ""
@echo " Setup:"
@echo " make install Install Python + frontend dependencies"
@echo ""
# ── Full-stack commands (cross-platform via Python) ─────────────────
dev:
@python scripts/start_all.py
dev-backend:
@python scripts/start_all.py --skip-frontend
stop:
@python scripts/stop_all.py
restart: stop
@echo ""
@python scripts/start_all.py
# ── Status check (cross-platform via Python) ────────────────────────
status:
@python scripts/status.py
# ── Individual services ─────────────────────────────────────────────
REDIS_PORT ?= 6379
API_PORT ?= 8000
API_HOST ?= localhost
redis:
@echo "Starting Redis via Docker Compose..."
@docker compose up -d redis
celery:
@echo "Starting Celery worker..."
ifeq ($(OS),Windows_NT)
python -m celery -A backend.src.workers.celery_app worker --pool=solo --loglevel=info
else
celery -A backend.src.workers.celery_app worker --loglevel=info
endif
api:
@echo "Starting FastAPI server..."
@uvicorn backend.src.api.app:app --host $(API_HOST) --port $(API_PORT) --reload
# Backward compat
start: dev
start-background: dev
services: dev
check: status
# ── Install dependencies ────────────────────────────────────────────
install:
@echo "Installing backend dependencies..."
@cd backend && pip install -e .
@echo ""
@echo "Installing frontend dependencies..."
@cd frontend && npm install
@echo ""
@echo "Done."