返回文档
CI/CD 自动部署
设置自动部署
推送代码到 GitHub 时自动部署应用程序。
Intermediate5 min readUpdated 2024-02-01
什么是自动部署?
自动部署在以下情况自动重新部署应用:
- 推送代码到配置的分支
- 工作流成功完成
- 手动触发部署
无需每次更改都点击"部署"。
启用自动部署
- 打开应用设置
- 前往 CI/CD 标签页
- 切换"自动部署"为开启
- 选择要监控的分支
- 配置轮询间隔(或使用 Webhook)
工作原理
Server Compass 检查更改:
- 按配置的间隔轮询仓库
- 检测分支上的新提交
- 触发新构建和部署
- 通知成功或失败
零停机部署
自动部署使用零停机策略:
- 新容器与现有容器一起启动
- 健康检查验证新容器
- 流量切换到新容器
- 旧容器优雅停止
Screenshots

Video Tutorials
Related Features
Auto-Deploy on Push
Enable automatic deployments triggered by code pushes. Configure polling intervals and branch filters.
Zero-Downtime Deployment
Blue-green deployment strategy ensures zero interruption. Health checks validate new containers before switching traffic.
GitHub Actions Integration
Build and deploy using GitHub Actions free CI minutes. Your server resources stay free for running apps.
Ready to try Server Compass?
Download the app and deploy your first application in under 5 minutes.
Download Server Compass