Mass replace irelax with homaroma across project

This commit is contained in:
Your Name committed 2026-06-03 11:01:01 +07:00
1 parent 5e6cb851de
commit d9c79aa900
57 files changed
+117 -117

No files matched your search

+11 -11
View File
@@ -1,4 +1,4 @@
# รายละเอียดโปรเจกต์ iRelax Aroma
# รายละเอียดโปรเจกต์ HomAroma
โปรเจกต์นี้เป็นระบบ E-commerce สำหรับผลิตภัณฑ์เครื่องหอมและน้ำมันหอมระเหย (Aroma & Essential Oils) โดยมีการออกแบบสถาปัตยกรรมแบบ Monorepo ที่แบ่งส่วนการทำงานออกเป็น 4 ส่วนหลักในโฟลเดอร์ `apps/` ดังนี้:
@@ -78,7 +78,7 @@ graph TD
git push server master
```
* **Remote Name:** `server`
* **Remote URL:** `ti@kitizone.com:/home/ti/git/irelax.git`
* **Remote URL:** `ti@kitizone.com:/home/ti/git/homaroma.git`
### ขั้นตอนการทำงานของสคริปต์ Deployment (`post-receive`)
เมื่อมีการ Push โค้ด สคริปต์จะทำงานโดยอัตโนมัติดังนี้:
@@ -86,21 +86,21 @@ git push server master
1. **Checkout & Build**: ดึงโค้ดล่าสุดมายังโฟลเดอร์ชั่วคราวและรัน `bun install`
2. **Frontend Deployment**:
* Build `website` และ `admin` (Vite)
* Deploy ไฟล์ `dist` ไปยัง Nginx paths (`/home/ti/projects/MyNginxMain/nginx/html/irelaxaroma.shop/`)
* Deploy ไฟล์ `dist` ไปยัง Nginx paths (`/home/ti/projects/MyNginxMain/nginx/html/homaroma.shop/`)
3. **Backend Deployment**:
* Sync โค้ดไปยัง `/home/ti/projects/irelax-api`
* Sync โค้ดไปยัง `/home/ti/projects/homaroma-api`
* รัน `prisma generate` และ `prisma migrate deploy` เพื่ออัปเดตฐานข้อมูล
* Restart บริการด้วย **PM2** (ชื่อ process: `irelax-backend`)
* Restart บริการด้วย **PM2** (ชื่อ process: `homaroma-backend`)
4. **SSR Deployment**:
* Build Next.js app และ Sync ไปยัง `/home/ti/projects/irelax-ssr`
* Restart บริการด้วย **PM2** (ชื่อ process: `irelax-ssr`) บนพอร์ต `3001`
* Build Next.js app และ Sync ไปยัง `/home/ti/projects/homaroma-ssr`
* Restart บริการด้วย **PM2** (ชื่อ process: `homaroma-ssr`) บนพอร์ต `3001`
5. **Cleanup**: ลบไฟล์ชั่วคราวที่ใช้ในการ Build ออก
### สรุป URL การเข้าใช้งาน (Production)
* **Website (SPA):** [https://irelaxaroma.shop](https://irelaxaroma.shop)
* **Admin Panel:** [https://admin.irelaxaroma.shop](https://admin.irelaxaroma.shop)
* **API Backend:** [https://api.irelaxaroma.shop](https://api.irelaxaroma.shop)
* **SSR Next.js:** [https://ssr.irelaxaroma.shop](https://ssr.irelaxaroma.shop)
* **Website (SPA):** [https://homaroma.shop](https://homaroma.shop)
* **Admin Panel:** [https://admin.homaroma.shop](https://admin.homaroma.shop)
* **API Backend:** [https://api.homaroma.shop](https://api.homaroma.shop)
* **SSR Next.js:** [https://ssr.homaroma.shop](https://ssr.homaroma.shop)
---