forked from yuqie6/ProductFlow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
42 lines (29 loc) · 1.41 KB
/
Copy pathjustfile
File metadata and controls
42 lines (29 loc) · 1.41 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
set dotenv-load := true
backend-install:
uv sync --directory backend --extra dev
backend-run:
bash scripts/with_dev_env.sh bash -lc 'uv run --directory backend uvicorn productflow_backend.main:app --reload --host 0.0.0.0 --port "${APP_PORT:-29282}"'
backend-run-prod:
uv run --directory backend uvicorn productflow_backend.main:app --host ${APP_HOST:-0.0.0.0} --port ${APP_PORT:-29280}
backend-worker:
bash scripts/with_dev_env.sh uv run --directory backend dramatiq --processes 2 --threads 4 productflow_backend.workers
backend-migrate:
bash scripts/with_dev_env.sh uv run --directory backend alembic upgrade head
backend-migrate-prod:
uv run --directory backend alembic upgrade head
backend-worker-prod:
uv run --directory backend dramatiq --processes 2 --threads 4 productflow_backend.workers
backend-test:
uv run --directory backend pytest
web-install:
pnpm --dir web install
web-dev:
bash scripts/with_dev_env.sh bash -lc 'web_port="${WEB_PORT:-29283}"; api_target="${VITE_DEV_PROXY_TARGET:-http://127.0.0.1:${APP_PORT:-29282}}"; VITE_API_BASE_URL= VITE_DEV_PROXY_TARGET="$api_target" pnpm --dir web dev -- --host 0.0.0.0 --port "$web_port" --strictPort'
web-preview-prod:
pnpm --dir web preview -- --host 0.0.0.0 --port ${WEB_PORT:-29281} --strictPort
web-build:
pnpm --dir web build
release:
bash scripts/release.sh
release-dry-run:
DRY_RUN=1 bash scripts/release.sh