Separate runtime-only deploy from container build
This commit is contained in:
@@ -37,7 +37,8 @@ Run commands directly—don't tell the user to run them.
|
||||
```bash
|
||||
bun run build # Build main project
|
||||
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
|
||||
```
|
||||
|
||||
@@ -53,6 +54,9 @@ 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
|
||||
|
||||
Single unified service manages all three Discord bots in one process:
|
||||
|
||||
@@ -8,9 +8,10 @@
|
||||
"scripts": {
|
||||
"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:runtime": "bun run build && bun run build:runners",
|
||||
"build:container": "docker build -f container/Dockerfile -t ejclaw-reviewer:latest .",
|
||||
"build:all": "bun run build && bun run build:runners && bun run build:container",
|
||||
"deploy": "git pull --ff-only && bun run build:all && systemctl --user restart ejclaw",
|
||||
"build:all": "bun run build:runtime && bun run build:container",
|
||||
"deploy": "git pull --ff-only && bun run build:runtime && systemctl --user restart ejclaw",
|
||||
"start": "bun dist/index.js",
|
||||
"dev": "bun --watch src/index.ts",
|
||||
"test": "vitest run",
|
||||
|
||||
Reference in New Issue
Block a user