-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
78 lines (58 loc) · 2.53 KB
/
Copy pathjustfile
File metadata and controls
78 lines (58 loc) · 2.53 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# totoro-tv — development recipes
# Requires: just (https://github.com/casey/just)
set dotenv-load := true
# List available recipes
default:
@just --list
# ── Local development ─────────────────────────────────────────────────────────
# Install dependencies and initialise .env from example (idempotent)
install:
npm install
@[ -f .env ] || (cp .env.example .env && echo "Created .env — edit it before running.")
# Run the Vite dev server on port 5173 (proxies /tunarr → TUNARR_URL)
dev:
npm run dev
# Type-check without emitting
typecheck:
npm run lint
# ── Docker (local build) ──────────────────────────────────────────────────────
# Build the Docker image locally
build:
docker build -t totoro-tv .
# Build and run a single container from the local image (reads .env)
run: build
docker run --rm -p 8080:8080 \
--env-file .env \
totoro-tv
# ── Docker Compose (published image) ─────────────────────────────────────────
# Pull the latest published image and start in the background
up:
docker compose pull
docker compose up -d
# Start in the foreground with live logs (no pull)
up-fg:
docker compose up
# Stop and remove containers
down:
docker compose down
# Pull the latest image and restart all containers
restart:
docker compose pull
docker compose up -d --force-recreate
# Tail container logs
logs:
docker compose logs -f
# ── Releases ──────────────────────────────────────────────────────────────────
# Tag a new release and push it — triggers CI to publish :latest + :<version>
# Usage: just release 1.2.3
release version:
git tag v{{ version }}
git push origin v{{ version }}
# ── Cleanup ───────────────────────────────────────────────────────────────────
# Remove node_modules and Vite build output
clean:
rm -rf dist node_modules
# Remove the local Docker image and all compose volumes
clean-docker:
docker compose down -v
docker rmi totoro-tv 2>/dev/null || true