-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (27 loc) · 1.24 KB
/
Copy pathMakefile
File metadata and controls
36 lines (27 loc) · 1.24 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
.PHONY: install migrate run test lint
install:
uv sync
migrate:
uv run python manage.py makemigrations
uv run python manage.py migrate
run:
uv run python manage.py runserver 0.0.0.0:8000
test:
uv run python manage.py test students
lint:
uv run python -m py_compile manage.py
uv run python -m py_compile student_api/settings.py
uv run python -m py_compile students/models.py
uv run python -m py_compile students/views.py
uv run python -m py_compile students/serializers.py
uv run python -m py_compile students/tests.py
# Docker commands─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
docker-build:
docker compose up -d
docker-down:
docker compose down
docker-migrate:
docker compose exec web python manage.py makemigrations
docker compose exec web python manage.py migrate
docker-logs:
docker compose logs -f