部署示例

每个示例都展示 recipaie 模板,并在可用时附上记录真实部署过程的 prodaie 执行记录。

nodejs-app

Deploy a Node.js application - supports PM2, systemd, Docker, or Kubernetes

含执行记录

查看示例

publog

Deploy Publog centralized log viewer - supports Docker Compose, Docker Swarm, Kubernetes, or standalone binary

含执行记录

查看示例

redis

Deploy Redis in-memory data store - supports Docker, Kubernetes, package manager, or source build

含执行记录

查看示例

tool-mcp

Install MCP bridge tools for AI assistant integration - standalone binaries, no containers required

含执行记录

查看示例

AI 如何生成 Prodaie

prodaie 是执行记录——运行 recipaie 所得的“产物”。它通常由 AI 助手在完成部署的过程中生成。

AI 工作流程

  1. 读取 recipaie - AI 把部署配方作为上下文接收

  2. 初始化 prodaie - 为这次部署创建一条 location 记录

  3. 逐步执行 - For each step:
    • 检查 skip_if 条件——若已满足则跳过
    • 执行 "how" 中的指令
    • 执行 "verify" 检查
    • 记录:success: true/false 以及 details: "what happened"

  4. 设置 location 状态 - 标记为 "complete"、"partial" 或 "failed"

  5. 保存 prodaie - 留存以备日后查阅

步骤结果字段

prodaie 的每一步都包含两个结果字段:

字段类型说明

success

boolean

若该步骤成功或被有意跳过,则为 true

details

string对所发生情况的可读说明

转换示例

当 AI 执行 recipaie 时,会产出带有执行结果的 prodaie。下面用单独一步来说明:

Recipaie(其中一步)

{
  "order": 3,
  "what": "Install Redis",
  "how": "docker run -d redis:7-alpine",
  "verify": "redis-cli ping returns PONG"
}

AI 执行完配方后,会产出:

Prodaie(同一步)

{
  "order": 3,
  "what": "Install Redis",
  "how": "docker run -d redis:7-alpine",
  "verify": "redis-cli ping returns PONG",
  "success": true,
  "details": "Container started, ping OK"
}