From fc21804bf1e329b0a5698765829df75444f3e04e Mon Sep 17 00:00:00 2001 From: Eyejoker Date: Tue, 31 Mar 2026 05:05:33 +0900 Subject: [PATCH] chore: add build:all and deploy scripts, remove hardcoded server details from docs --- CLAUDE.md | 6 +++--- README.md | 3 +-- package.json | 2 ++ 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index bf7d709..9d4c120 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -51,9 +51,9 @@ systemctl --user status ejclaw # Check status journalctl --user -u ejclaw -f # Follow logs ``` -Deploy to server (build on server, not locally): +Deploy: ```bash -ssh clone-ej@100.64.185.108 'cd ~/EJClaw && git pull && bun run build && bun run build:runners && bun run build:container && systemctl --user restart ejclaw' +bun run deploy ``` ## Service Stack Architecture @@ -66,7 +66,7 @@ Single unified service manages all three Discord bots in one process: - Shared dirs: `store/`, `groups/`, `data/` - SQLite WAL mode + `busy_timeout=5000` for concurrent access -## Debugging Paths (Server: clone-ej@100.64.185.108) +## Debugging Paths Unified DB + directories (both services share `store/`, `groups/`, `data/`): diff --git a/README.md b/README.md index 3f8ba10..c8471c9 100644 --- a/README.md +++ b/README.md @@ -166,8 +166,7 @@ MOA_GLM_API_FORMAT=anthropic ### Deploy ```bash -cd ~/EJClaw -git pull && bun run build && bun run build:runners && bun run build:container && systemctl --user restart ejclaw +bun run deploy ``` ## Development diff --git a/package.json b/package.json index 58b7397..1ed5ebb 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,8 @@ "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: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 && bun run build:all && systemctl --user restart ejclaw", "restart:stack": "bash scripts/restart-ejclaw-stack.sh", "restart:hint": "bun src/restart-context-cli.ts write", "start": "bun dist/index.js",