Odoo Deployment
🇹🇭 ภาษาไทย
Odoo มีตัวเลือก deployment หลายแบบ ตั้งแต่ SaaS บน Odoo Cloud, PaaS บน Odoo.sh, ไปจนถึง Self-hosted บน server ของตัวเอง และมี upgrade path ชัดเจนทุกรูปแบบ
→ กลับไปหน้าหลัก Odoo
Deployment Options เปรียบเทียบ
| ตัวเลือก | ราคา | จัดการโดย | เหมาะกับ |
|---|---|---|---|
| Odoo Online (SaaS) | รวมใน Enterprise (~$13.50/user/เดือน) | Odoo ทั้งหมด | SME ที่ต้องการเร็ว ง่าย |
| Odoo.sh (PaaS) | $0 + ค่า Odoo license | Odoo.sh platform (Devops) + ผู้ใช้ดูแล code | นักพัฒนา / custom module |
| Self-hosted | ค่า server + license | ผู้ใช้ทั้งหมด | องค์กรที่ต้องการ control เต็มที่ |
| Community | ฟรี | ผู้ใช้ทั้งหมด | ทดลอง / SME งบจำกัด |
Odoo.sh — GitHub-Integrated PaaS
Odoo.sh คือ Platform-as-a-Service อย่างเป็นทางการของ Odoo ที่ integrate กับ GitHub โดยตรง
Branch Types
| Branch | คำอธิบาย |
|---|---|
| Production | สาขา live จริง; deploy โดย git push |
| Staging | ทดสอบ production clone; รีเฟรชจาก production อัตโนมัติ |
| Development | สาขาทดลอง; สร้างใหม่ได้ไม่จำกัด |
Features หลัก
- Deploy by git push —
git push origin main→ Odoo.sh build + deploy อัตโนมัติ - SSH access — เข้าถึง shell ของ container ได้โดยตรง
- One-click duplicate — clone production เป็น staging ในคลิกเดียว
- Automatic backup — incremental backup ทุกวัน เก็บบน 3 data centers
- 24/7 monitoring — Odoo.sh monitor uptime และ health ตลอดเวลา
- Custom domains — กำหนด domain ของตัวเองได้
- Outgoing email — ตั้งค่า SMTP เอง หรือใช้ Odoo Mail Gateway
- Build logs — ดู log การ build และ deploy ได้ real-time
Tech Stack
GitHub Repository
→ Odoo.sh Webhook
→ Container Build (Docker-based)
→ PostgreSQL Database
→ Nginx + SSL
→ Odoo App Server
ข้อดี/ข้อเสีย
ข้อดี:
- Deploy ผ่าน
git push— workflow นักพัฒนา - Test บน production clone ได้ฟรี
- Backup อัตโนมัติ ไม่ต้องดูแลเอง
- SSH access — debug ได้โดยตรง
ข้อเสีย:
- ค่าใช้จ่ายสูงกว่า Online สำหรับ simple use case
- ต้องมีความรู้ Git
Odoo Upgrade — 4 วิธี
วิธีที่ 1: Command Line (CLI)
python <(curl -s https://upgrade.odoo.com/upgrade) test \
--d <database_name> \
--t <target_version>ขั้นตอน:
- รัน script ทดสอบบน staging ก่อน
- ตรวจสอบผลลัพธ์และ resolve errors
- รัน production upgrade:
python <(curl -s https://upgrade.odoo.com/upgrade) production \ --d <database_name> \ --t <target_version>
เหมาะกับ: Self-hosted / Odoo.sh
วิธีที่ 2: Upload Form (upgrade.odoo.com)
- ไปที่ upgrade.odoo.com
- อัปโหลด database backup
- เลือก target version
- รอ Odoo ประมวลผล (อาจใช้เวลาหลายชั่วโมง)
- ได้ upgraded database กลับมา — ระยะ Testing: 3 วัน
- ทดสอบใน testing instance
- เมื่อ confirm → request Production upgrade
หมายเหตุ: มีหน้าต่าง Testing 3 วันก่อน commit เป็น Production
วิธีที่ 3: Odoo.sh UPGRADE Tab
- ไปที่ Odoo.sh Dashboard
- เลือก Branch ที่ต้องการ upgrade
- คลิก tab UPGRADE
- เลือก target version
- Odoo.sh จะสร้าง staging branch ของ upgraded database อัตโนมัติ
- ทดสอบ → merge เข้า production
วิธีที่ 4: Odoo Online (My Subscription)
- Log in Odoo Online
- ไปที่ My Subscription → Odoo Apps
- คลิก Upgrade บน plan
- เลือก target version
- Odoo จัดการทุกอย่างอัตโนมัติ (downtime สั้น)
เหมาะกับ: Odoo Online (SaaS) users เท่านั้น
Backup & Recovery
| Odoo Online | Odoo.sh | Self-hosted | |
|---|---|---|---|
| Backup | อัตโนมัติโดย Odoo | Incremental daily + 3 DC | ต้องทำเอง |
| Recovery | ผ่าน Support | One-click ใน dashboard | pg_restore |
| Retention | หลายสัปดาห์ | ตามแผน | ขึ้นกับ storage |
Security (Odoo Online / Odoo.sh)
- SSL/TLS — ทุก connection บังคับ HTTPS
- IP Filtering — จำกัด access ตาม IP ได้
- Two-Factor Authentication — รองรับ 2FA สำหรับ user
- LDAP/Active Directory — Enterprise รองรับ SSO
- Audit Log — บันทึก user actions
Related
- Odoo — หน้าหลัก Odoo ERP
- Odoo User Management — การจัดการ user และสิทธิ์
- Proxmox VE — platform สำหรับ self-host Odoo บน VM
🇬🇧 English
Odoo offers multiple deployment options: SaaS on Odoo Cloud, PaaS on Odoo.sh, and self-hosted on your own infrastructure. Each tier has a corresponding upgrade path.
→ Return to Odoo main page
Deployment Comparison
| Option | Cost | Managed By | Best For |
|---|---|---|---|
| Odoo Online (SaaS) | Included in Enterprise (~$13.50/user/month) | Odoo fully | SMEs wanting fast, simple setup |
| Odoo.sh (PaaS) | $0 platform + Odoo license | Odoo.sh + you manage code | Developers / custom modules |
| Self-hosted | Server cost + license | You fully | Full control, custom infra |
| Community | Free | You fully | Testing / budget-constrained |
Odoo.sh — GitHub-Integrated PaaS
Odoo.sh is Odoo’s official PaaS platform with native GitHub integration.
Branch Types
| Branch | Description |
|---|---|
| Production | Live branch; deploy via git push |
| Staging | Production clone for testing; auto-refreshed from production |
| Development | Experimental branches; unlimited creations |
Key Features
- Deploy by git push —
git push origin maintriggers auto build + deploy on Odoo.sh - SSH access — Direct shell access to the container
- One-click duplicate — Clone production to staging in one click
- Automatic backup — Daily incremental backups stored across 3 data centers
- 24/7 monitoring — Odoo.sh monitors uptime and health continuously
- Custom domains — Configure your own domain name
- Build logs — View real-time build and deployment logs
Odoo Upgrade — 4 Methods
Method 1: Command Line (CLI)
python <(curl -s https://upgrade.odoo.com/upgrade) test \
--d <database_name> \
--t <target_version>Steps: Run test mode on staging → review and resolve errors → run production upgrade.
Method 2: Upload Form (upgrade.odoo.com)
- Go to upgrade.odoo.com and upload a database backup
- Choose target version → wait for processing
- Receive upgraded database — 3-day Testing window
- Test, then request Production promotion
Method 3: Odoo.sh UPGRADE Tab
- Open Odoo.sh Dashboard → select branch → click UPGRADE tab
- Select target version → Odoo.sh auto-creates a staging branch with the upgraded database
- Test → merge to production
Method 4: Odoo Online (My Subscription)
- Navigate to My Subscription → Odoo Apps → Upgrade
- Select target version → Odoo handles everything automatically
Backup & Recovery
| Odoo Online | Odoo.sh | Self-hosted | |
|---|---|---|---|
| Backup | Automatic by Odoo | Daily incremental + 3 DCs | Manual |
| Recovery | Via support | One-click in dashboard | pg_restore |
Related Pages
- Odoo — Odoo ERP main page
- Odoo User Management — User accounts and access rights
- Proxmox VE — Virtualization platform for self-hosted Odoo