⚙️ 自动化 📖 官方

部署检查清单

创建包含自动化验证的综合部署前检查清单

★★☆ 中级 15 min 2025年1月13日
📋

使用场景

部署上线需要系统性的验证以防止问题发生。Cowork 可以根据你的技术栈生成定制化的检查清单,并创建自动化脚本来执行各项检查。

💬

提示词

I'm deploying a Node.js application to production. Please create:

1. A pre-deployment checklist covering:
   - Code quality (tests, linting)
   - Security (dependencies, secrets)
   - Database (migrations, backups)
   - Infrastructure (resources, configs)
   - Monitoring (alerts, logging)

2. An automated verification script that checks:
   - All tests pass
   - No security vulnerabilities
   - Environment variables set
   - Database connectivity

3. A post-deployment verification checklist

Save to ~/Deployments/checklist/

预期结果

Claude 会生成: - 详细的 Markdown 格式检查清单 - 自动化验证脚本(检查测试、安全漏洞、环境变量等) - 回滚预案和故障恢复流程 - 部署步骤和部署后验证清单

💡

使用技巧

  • 将检查清单集成到 CI/CD 流程中,把关键检查项设为部署的阻断条件
  • 务必在部署前完成数据库备份
  • 可以针对不同技术栈生成对应的检查清单