deployment-procedures by claudiodearaujo/izacenter
npx skills add https://github.com/claudiodearaujo/izacenter --skill deployment-procedures安全发布到生产环境的原则与决策指南。学会思考,而非死记脚本。
此技能教授部署原则,而非供复制的 bash 脚本。
What are you deploying?
│
├── Static site / JAMstack
│ └── Vercel, Netlify, Cloudflare Pages
│
├── Simple web app
│ ├── Managed → Railway, Render, Fly.io
│ └── Control → VPS + PM2/Docker
│
├── Microservices
│ └── Container orchestration
│
└── Serverless
└── Edge functions, Lambda
| 平台 | 部署方式 |
|---|---|
| Vercel/Netlify | Git push,自动部署 |
| Railway/Render | Git push 或 CLI |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| VPS + PM2 | SSH + 手动步骤 |
| Docker | 镜像推送 + 编排 |
| Kubernetes | kubectl apply |
| 类别 | 检查内容 |
|---|---|
| 代码质量 | 测试通过,代码检查通过,已评审 |
| 构建 | 生产构建成功,无警告 |
| 环境 | 环境变量已设置,密钥为最新 |
| 安全 | 备份已完成,回滚计划就绪 |
1. PREPARE
└── Verify code, build, env vars
2. BACKUP
└── Save current state before changing
3. DEPLOY
└── Execute with monitoring open
4. VERIFY
└── Health check, logs, key flows
5. CONFIRM or ROLLBACK
└── All good? Confirm. Issues? Rollback.
| 阶段 | 原则 |
|---|---|
| 准备 | 绝不部署未经测试的代码 |
| 备份 | 没有备份就无法回滚 |
| 部署 | 实时监控,切勿离开 |
| 验证 | 信任但需验证 |
| 确认 | 准备好回滚触发机制 |
| 检查项 | 原因 |
|---|---|
| 健康检查端点 | 服务正在运行 |
| 错误日志 | 无新增错误 |
| 关键用户流程 | 核心功能正常工作 |
| 性能 | 响应时间可接受 |
| 现象 | 行动 |
|---|---|
| 服务宕机 | 立即回滚 |
| 关键错误 | 回滚 |
| 性能下降 >50% | 考虑回滚 |
| 次要问题 | 若修复迅速,则向前修复 |
| 平台 | 回滚方法 |
|---|---|
| Vercel/Netlify | 重新部署上一个提交 |
| Railway/Render | 在仪表板中回滚 |
| VPS + PM2 | 恢复备份,重启 |
| Docker | 使用上一个镜像标签 |
| K8s | kubectl rollout undo |
| 策略 | 工作原理 |
|---|---|
| 滚动更新 | 逐个替换实例 |
| 蓝绿部署 | 在不同环境间切换流量 |
| 金丝雀发布 | 逐步转移流量 |
| 场景 | 策略 |
|---|---|
| 标准发布 | 滚动更新 |
| 高风险变更 | 蓝绿部署(易于回滚) |
| 需要验证 | 金丝雀发布(用真实流量测试) |
| 检查项 | 常见问题 |
|---|---|
| 日志 | 错误,异常 |
| 资源 | 磁盘已满,内存不足 |
| 网络 | DNS,防火墙 |
| 依赖项 | 数据库,API |
| ❌ 不要 | ✅ 应该 |
|---|---|
| 周五部署 | 在工作周前期部署 |
| 仓促部署 | 遵循流程 |
| 跳过预演环境 | 始终先测试 |
| 无备份部署 | 部署前备份 |
| 部署后离开 | 监控至少 15 分钟 |
| 一次进行多项更改 | 一次只进行一项更改 |
部署前确认:
谨记: 每次部署都存在风险。通过充分准备而非追求速度来最小化风险。
每周安装量
1
代码仓库
GitHub 星标数
1
首次出现
1 天前
安全审计
安装于
zencoder1
amp1
cline1
openclaw1
opencode1
cursor1
Deployment principles and decision-making for safe production releases. Learn to THINK, not memorize scripts.
This skill teaches deployment principles , not bash scripts to copy.
What are you deploying?
│
├── Static site / JAMstack
│ └── Vercel, Netlify, Cloudflare Pages
│
├── Simple web app
│ ├── Managed → Railway, Render, Fly.io
│ └── Control → VPS + PM2/Docker
│
├── Microservices
│ └── Container orchestration
│
└── Serverless
└── Edge functions, Lambda
| Platform | Deployment Method |
|---|---|
| Vercel/Netlify | Git push, auto-deploy |
| Railway/Render | Git push or CLI |
| VPS + PM2 | SSH + manual steps |
| Docker | Image push + orchestration |
| Kubernetes | kubectl apply |
| Category | What to Check |
|---|---|
| Code Quality | Tests passing, linting clean, reviewed |
| Build | Production build works, no warnings |
| Environment | Env vars set, secrets current |
| Safety | Backup done, rollback plan ready |
1. PREPARE
└── Verify code, build, env vars
2. BACKUP
└── Save current state before changing
3. DEPLOY
└── Execute with monitoring open
4. VERIFY
└── Health check, logs, key flows
5. CONFIRM or ROLLBACK
└── All good? Confirm. Issues? Rollback.
| Phase | Principle |
|---|---|
| Prepare | Never deploy untested code |
| Backup | Can't rollback without backup |
| Deploy | Watch it happen, don't walk away |
| Verify | Trust but verify |
| Confirm | Have rollback trigger ready |
| Check | Why |
|---|---|
| Health endpoint | Service is running |
| Error logs | No new errors |
| Key user flows | Critical features work |
| Performance | Response times acceptable |
| Symptom | Action |
|---|---|
| Service down | Rollback immediately |
| Critical errors | Rollback |
| Performance >50% degraded | Consider rollback |
| Minor issues | Fix forward if quick |
| Platform | Rollback Method |
|---|---|
| Vercel/Netlify | Redeploy previous commit |
| Railway/Render | Rollback in dashboard |
| VPS + PM2 | Restore backup, restart |
| Docker | Previous image tag |
| K8s | kubectl rollout undo |
| Strategy | How It Works |
|---|---|
| Rolling | Replace instances one by one |
| Blue-Green | Switch traffic between environments |
| Canary | Gradual traffic shift |
| Scenario | Strategy |
|---|---|
| Standard release | Rolling |
| High-risk change | Blue-green (easy rollback) |
| Need validation | Canary (test with real traffic) |
| Check | Common Issues |
|---|---|
| Logs | Errors, exceptions |
| Resources | Disk full, memory |
| Network | DNS, firewall |
| Dependencies | Database, APIs |
| ❌ Don't | ✅ Do |
|---|---|
| Deploy on Friday | Deploy early in week |
| Rush deployment | Follow the process |
| Skip staging | Always test first |
| Deploy without backup | Backup before deploy |
| Walk away after deploy | Monitor for 15+ min |
| Multiple changes at once | One change at a time |
Before deploying:
Remember: Every deployment is a risk. Minimize risk through preparation, not speed.
Weekly Installs
1
Repository
GitHub Stars
1
First Seen
1 day ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
zencoder1
amp1
cline1
openclaw1
opencode1
cursor1
房地产专家系统:MLS集成、虚拟看房、AI估值与物业管理技术解决方案
206 周安装
TypeScript/JavaScript 开发技能 - 掌握 Metabase 开源项目开发流程与工具
206 周安装
Upstash Redis SDK 完整指南 - Redis-JS 安装、使用与性能优化教程
206 周安装
Tavily API 网络搜索技能 - 实现网页爬取、内容提取和智能研究功能
206 周安装
企业合规助手:GDPR、CCPA等隐私法规合规指南与数据处理协议审查清单
206 周安装
DeepSpeed 开发助手:官方文档指南、API 使用与性能优化教程
207 周安装