-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (24 loc) · 962 Bytes
/
Copy pathMakefile
File metadata and controls
33 lines (24 loc) · 962 Bytes
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
# Dev and build targets.
# Цели разработки и сборки.
PY := python3
.PHONY: start compose setup run test logs down
#* One-command start for any OS: delegates to ./start.sh (or start.bat on
#* Windows). It detects Docker Compose and starts everything in containers;
#* without Docker it runs natively (Redis + venv + uvicorn, SQLite by default).
#? Запуск одной командой для любой ОС: делегирует в ./start.sh (на Windows —
#? start.bat). Скрипт определяет Docker Compose и поднимает всё в контейнерах;
#? без Docker запускается нативно (Redis + venv + uvicorn, по умолчанию SQLite).
start:
./start.sh
compose:
docker compose up -d --build
setup:
$(PY) -m pip install -e ".[dev]"
run:
uvicorn app.main:app --reload --port 8000
test:
$(PY) -m pytest -q
logs:
docker compose logs -f app
down:
docker compose down