
How to Deploy to Production【免费下载链接】skillsSkills Catalog for Codex项目地址: https://gitcode.com/GitHub_Trending/skills4/skillsOverviewProduction deployment using GitHub Actions with zero-downtime rolling updates.Time Required: 15-20 minutes |Complexity: IntermediatePrerequisitesPR approved and merged to mainAll CI tests passingDatabase migrations reviewedFeature flags configuredDeployment StepsVerify main branch is readygit checkout main git pullTag releasegit tag -a v1.2.3 -m Release v1.2.3 git push origin v1.2.3Trigger deploymentGitHub Actions auto-starts from tag pushMonitor: https://github.com/org/repo/actionsDatabase migrations(if needed)Auto-run in GitHub ActionsCheck logs for completionVerify deploymentWait for health checks (2-3 min)Test key endpointsCheck error rates in DatadogVerification ChecklistAll pods healthy in k8s dashboardError rate 0.1% in last 10 minResponse time p95 500msTest login flowCheck Slack #alerts channelTroubleshootingHealth checks failing→ Check pod logs:kubectl logs -f deployment/api -n productionMigration errors→ Rollback: Revert tag, migrations auto-rollbackHigh error rate→ Emergency rollback: Previous tag auto-deploys via GitHub ActionsBest PracticesDeploy during low-traffic hours (2-4am PST)Have 2 engineers availableMonitor for 30 min post-deployUpdate #engineering Slack with deploy noticeRelated DocsRollback ProcedureDatabase Migration Guide注意这篇指南的撰写规律Overview 中给出耗时与复杂度元数据Prerequisites 用复选框清单Deployment Steps 用编号列表并内嵌可执行的 bash 命令Troubleshooting 采用问题 → 解决动作的映射形式Related Docs 用 Notion 的 mention-page 占位符链接相关文档——这正是 [SKILL.md](https://link.gitcode.com/i/7014d790bd4d6a51f614cf9ac6c2d4ef) 中Use templates in reference/ to structure content (section headers, checklists)的体现。 ### 6.2 结合 How-To 数据库 Schema 完善属性 示例在创建页面时仅指定了 parent但完整的捕获流程见 [SKILL.md](https://link.gitcode.com/i/7014d790bd4d6a51f614cf9ac6c2d4ef) 第 4 步要求使用正确的 data_source_id 并设置属性title、tags、owner、status、dates、relations。[how-to-guide-database.md](https://link.gitcode.com/i/25e993d42a6e8e36712d8070cdbdf2c5) 定义了 How-To 指南数据库的完整 Schema | Property | Type | Options | Purpose | |----------|------|---------|---------| | **Title** | title | - | How to [Task] | | **Complexity** | select | Beginner, Intermediate, Advanced | Skill level required | | **Time Required** | number | - | Estimated minutes to complete | | **Prerequisites** | relation | Links to other guides | Required knowledge | | **Category** | select | Development, Deployment, Testing, Tools | Task category | | **Last Tested** | date | - | When procedure was verified | | **Tags** | multi_select | - | Technology/tool tags | 创建页面时的属性负载可以这样组织与示例文档中 How to Set Up Local Development Environment 的用法一致Create how-to guides with properties: { Title: How to Set Up Local Development Environment, Complexity: Beginner, Time Required: 30, Category: Development, Last Tested: 2025-10-01, Tags: setup, environment, docker }对照本文的部署示例可以推断对应属性值为Complexity: Intermediate、Time Required: 15按文档的 15-20 分钟估计、Category: Deployment、Tags: deployment, github-actions, kubernetes 等。Prerequisites 作为 relation 类型可以把 Rollback Procedure、Database Migration Guide 等关联指南通过关系链接起来。 **说明**属性名与取值范围以 [how-to-guide-database.md](https://link.gitcode.com/i/25e993d42a6e8e36712d8070cdbdf2c5) 的 Schema 表为准具体数据库中属性的确切名称建议先通过 Notion:notion-fetch 获取数据库 Schema 再填充见 [database-best-practices.md](https://link.gitcode.com/i/b7e3b1b0e1e792a28af0791bdef19482)。 --- ## 七、第五步让指南可被发现notion-update-page 创建页面只是第一步文档必须能被团队找到才有价值。示例中通过更新 Wiki 首页来挂载链接Notion:notion-update-page page_id: engineering-wiki-homepage command: insert_content_after【免费下载链接】skillsSkills Catalog for Codex项目地址: https://gitcode.com/GitHub_Trending/skills4/skills创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考