Skip to content

Commit 11f012a

Browse files
committed
test commit3
1 parent 010f28e commit 11f012a

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

build.sh

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
#!/usr/bin/env bash
2-
set -e
2+
set -euo pipefail
33

4-
curl -LsSf https://astral.sh/uv/install.sh | sh
5-
source "$HOME/.local/bin/env"
4+
if ! command -v uv >/dev/null 2>&1; then
5+
curl -LsSf https://astral.sh/uv/install.sh | sh
6+
. "$HOME/.local/bin/env"
7+
else
8+
[ -f "$HOME/.local/bin/env" ] && . "$HOME/.local/bin/env"
9+
fi
610

7-
make install
8-
make collectstatic
9-
make migrate
11+
# 2) Установить зависимости (создаст .venv)
12+
uv sync
13+
14+
# 3) Все django-команды — строго через uv run
15+
uv run python manage.py collectstatic --noinput
16+
uv run python manage.py migrate

0 commit comments

Comments
 (0)