กลับไปยังเอกสาร
CI/CD และการปรับใช้อัตโนมัติ
ตั้งค่า Auto-Deploy
Deploy แอปพลิเคชันของคุณโดยอัตโนมัติเมื่อคุณ push code ไปยัง GitHub
Intermediate5 min readUpdated 2024-02-01
Auto-deploy คืออะไร?
Auto-deploy จะ redeploy แอปของคุณโดยอัตโนมัติเมื่อ:
- คุณ push code ไปยัง branch ที่กำหนดค่า
- Workflow เสร็จสมบูรณ์สำเร็จ
- คุณทริกเกอร์ deployment ด้วยตนเอง
ไม่จำเป็นต้องคลิก "Deploy" ทุกครั้งที่คุณทำการเปลี่ยนแปลง
เปิดใช้งาน auto-deploy
- เปิดการตั้งค่าแอปของคุณ
- ไปที่แท็บ CI/CD
- สลับ "Auto-Deploy" เป็นเปิด
- เลือก branch ที่จะติดตาม
- กำหนดค่า polling interval (หรือใช้ webhooks)
การทำงาน
Server Compass ตรวจสอบการเปลี่ยนแปลง:
- Polls repository ของคุณในช่วงเวลาที่กำหนดค่า
- ตรวจจับ commits ใหม่บน branch ของคุณ
- ทริกเกอร์ build และ deployment ใหม่
- แจ้งเตือนคุณเมื่อสำเร็จหรือล้มเหลว
Zero-downtime deployment
Auto-deploy ใช้กลยุทธ์ zero-downtime:
- Container ใหม่เริ่มต้น alongside ที่มีอยู่
- Health checks ตรวจสอบ container ใหม่
- Traffic สลับไปยัง container ใหม่
- Container เก่าหยุดอย่างสง่างาม
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