Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Environment:23blocks OS Ai maestro pm2

From Leeroopedia
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)

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment