Environment:23blocks OS Ai maestro pm2
| Knowledge Sources | |
|---|---|
| Domains | Infrastructure, Deployment |
| Last Updated | 2026-10-26 18:00 GMT |
Overview
pm2: the Node.js process manager used to keep AI Maestro's production server running and to restart it after updates.
Description
AI Maestro's production server is managed by pm2 (`pm2 restart ai-maestro`). The update script (`update-aimaestro.sh`) pulls code, rebuilds, reinstalls hooks/plugin, and restarts the pm2-managed process. pm2 keeps the server alive across crashes and provides logs. The CLAUDE.md notes that `yarn build` must never run in the checkout a live server runs from — pm2's restart is paired with a build in a separate worktree or with a build-and-restart-together sequence.
Usage
Use this environment for host-update and deployment implementations that manage the AI Maestro server process.
System Requirements
| Category | Requirement | Notes |
|---|---|---|
| Software | pm2 | Installed globally |
Dependencies
- `pm2` (npm global)