Separate runtime-only deploy from container build

This commit is contained in:
ejclaw
2026-04-07 02:00:57 +09:00
parent 9d8c97a8e2
commit cd6aa32157
2 changed files with 8 additions and 3 deletions

View File

@@ -37,7 +37,8 @@ Run commands directly—don't tell the user to run them.
```bash ```bash
bun run build # Build main project bun run build # Build main project
bun run build:runners # Install + build both runners bun run build:runners # Install + build both runners
bun run build:container # Rebuild reviewer Docker image bun run build:runtime # Build host runtime only
bun run build:container # Optional: rebuild reviewer Docker image
bun run dev # Dev mode with hot reload bun run dev # Dev mode with hot reload
``` ```
@@ -53,6 +54,9 @@ Deploy:
bun run deploy bun run deploy
``` ```
`deploy` rebuilds only the host runtime. Rebuild the reviewer Docker image
separately with `bun run build:container` only when you need the container path.
## Service Stack Architecture ## Service Stack Architecture
Single unified service manages all three Discord bots in one process: Single unified service manages all three Discord bots in one process:

View File

@@ -8,9 +8,10 @@
"scripts": { "scripts": {
"build": "tsc", "build": "tsc",
"build:runners": "bun install --cwd runners/agent-runner && bun run --cwd runners/agent-runner build && bun install --cwd runners/codex-runner && bun run --cwd runners/codex-runner build", "build:runners": "bun install --cwd runners/agent-runner && bun run --cwd runners/agent-runner build && bun install --cwd runners/codex-runner && bun run --cwd runners/codex-runner build",
"build:runtime": "bun run build && bun run build:runners",
"build:container": "docker build -f container/Dockerfile -t ejclaw-reviewer:latest .", "build:container": "docker build -f container/Dockerfile -t ejclaw-reviewer:latest .",
"build:all": "bun run build && bun run build:runners && bun run build:container", "build:all": "bun run build:runtime && bun run build:container",
"deploy": "git pull --ff-only && bun run build:all && systemctl --user restart ejclaw", "deploy": "git pull --ff-only && bun run build:runtime && systemctl --user restart ejclaw",
"start": "bun dist/index.js", "start": "bun dist/index.js",
"dev": "bun --watch src/index.ts", "dev": "bun --watch src/index.ts",
"test": "vitest run", "test": "vitest run",