-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (27 loc) · 964 Bytes
/
Copy pathMakefile
File metadata and controls
38 lines (27 loc) · 964 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
34
35
36
# install: ставим зависимости через uv
install:
uv sync
# migrate: применяем миграции в текущей БД
migrate:
uv run manage.py migrate
# collectstatic: собираем статику для продакшена
collectstatic:
uv run manage.py collectstatic --noinput
start-server:
UV_CACHE_DIR=/tmp/uv-cache uv run manage.py runserver 0.0.0.0:3000
# build: шаг сборки на Render (устанавливает uv, deps, static, миграции)
build:
./build.sh
# render-start: команда запуска на Render (gunicorn)
render-start:
@PORT=$${PORT:-8000}; uv run gunicorn task_manager.wsgi:application --bind 0.0.0.0:$$PORT
# lint: проверяем код стилем ruff
lint:
uv run ruff check .
# format: автоформат роуффом
format:
uv run ruff format .
# fix: автофикс замечаний роуффа
fix:
uv run ruff check . --fix
check: lint