@surgedev/agent
v0.0.2
Published
SurgeDev deployment agent — runs on target VPS, polls for tasks and executes docker compose
Readme
@surgedev/agent
Runs on your VPS, polls the SurgeDev control plane for deployment tasks, and executes docker build / docker compose.
Requirements
- Node.js 18+
- Docker Engine with Compose v2 (
docker compose)
Install
npm install -g @surgedev/agentConfigure
Set environment variables (e.g. in systemd EnvironmentFile):
| Variable | Required | Description |
|----------|----------|-------------|
| SURGEDEV_API_URL | Yes | Control plane base URL (no trailing /) |
| SURGEDEV_HOST_ID | Yes | Host UUID from platform admin registration |
| SURGEDEV_AGENT_TOKEN | Yes | Agent token (sat_...) from registration |
| SURGEDEV_POLL_INTERVAL | No | Poll interval in seconds (default: 10) |
| SURGEDEV_WORK_DIR | No | Working directory (default: /opt/surgedev) |
Run
surgedev-agentLicense
Apache-2.0
