chore: add build:all and deploy scripts, remove hardcoded server details from docs
This commit is contained in:
@@ -51,9 +51,9 @@ systemctl --user status ejclaw # Check status
|
|||||||
journalctl --user -u ejclaw -f # Follow logs
|
journalctl --user -u ejclaw -f # Follow logs
|
||||||
```
|
```
|
||||||
|
|
||||||
Deploy to server (build on server, not locally):
|
Deploy:
|
||||||
```bash
|
```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
|
## Service Stack Architecture
|
||||||
@@ -66,7 +66,7 @@ Single unified service manages all three Discord bots in one process:
|
|||||||
- Shared dirs: `store/`, `groups/`, `data/`
|
- Shared dirs: `store/`, `groups/`, `data/`
|
||||||
- SQLite WAL mode + `busy_timeout=5000` for concurrent access
|
- 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/`):
|
Unified DB + directories (both services share `store/`, `groups/`, `data/`):
|
||||||
|
|
||||||
|
|||||||
@@ -166,8 +166,7 @@ MOA_GLM_API_FORMAT=anthropic
|
|||||||
### Deploy
|
### Deploy
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd ~/EJClaw
|
bun run deploy
|
||||||
git pull && bun run build && bun run build:runners && bun run build:container && systemctl --user restart ejclaw
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|||||||
@@ -8,6 +8,8 @@
|
|||||||
"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: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",
|
||||||
|
"deploy": "git pull && bun run build:all && systemctl --user restart ejclaw",
|
||||||
"restart:stack": "bash scripts/restart-ejclaw-stack.sh",
|
"restart:stack": "bash scripts/restart-ejclaw-stack.sh",
|
||||||
"restart:hint": "bun src/restart-context-cli.ts write",
|
"restart:hint": "bun src/restart-context-cli.ts write",
|
||||||
"start": "bun dist/index.js",
|
"start": "bun dist/index.js",
|
||||||
|
|||||||
Reference in New Issue
Block a user