# 🚀 Deployment Instructions - Deal Plus Tech Astro

## ✅ Git Pushed Successfully!

**Repository:** https://git.moreminimore.com/kunthawat/dealplustech.git  
**Branch:** main  
**Commit:** 6402d88 - Complete Astro migration

---

## 📦 Deploy to Easypanel

### Option 1: Via Easypanel UI (Recommended)

1. **Login to Easypanel:** http://110.164.146.46:3000

2. **Go to Project:** `customerwebsite`

3. **Create New Service:**
   - Click "New Service" → "Git Repository"
   - Repository URL: `https://git.moreminimore.com/kunthawat/dealplustech.git`
   - Branch: `main`
   - Service Name: `dealplustech-astro`

4. **Configure Build:**
   - Build Type: **Dockerfile**
   - Dockerfile Path: `./dealplustech-astro/Dockerfile`
   - Port: `3000`

5. **Click "Deploy"**

6. **Wait for build** (~2-3 minutes)

7. **Access your site:** Easypanel will provide the URL

---

### Option 2: If Service Already Exists

If you have an existing service for this repo:

1. The git push should trigger **auto-deploy** automatically
2. Check the service deployment logs in Easypanel
3. If auto-deploy didn't trigger, click "Redeploy" manually

---

## ✅ Verify Deployment

After deployment completes:

- [ ] Visit your site URL
- [ ] Cookie consent banner appears
- [ ] Homepage loads correctly
- [ ] Privacy Policy accessible (`/privacy-policy/`)
- [ ] Terms & Conditions accessible (`/terms-and-conditions/`)
- [ ] Blog posts load (`/blog/`)
- [ ] All navigation works
- [ ] Mobile responsive

---

## ⚙️ Post-Deployment Configuration

### Enable Umami Analytics

Edit `src/layouts/BaseLayout.astro` (lines ~103-105):

```javascript
function loadAnalytics() {
  const umamiEnabled = true;  // Change to true
  const umamiWebsiteId = 'xxx-xxx-xxx';  // Your Umami ID
  const umamiDomain = 'analytics.moreminimore.com';  // Your domain
  
  if (umamiEnabled && umamiWebsiteId && umamiDomain) {
    // Loads Umami script
  }
}
```

Then commit and push:
```bash
git add src/layouts/BaseLayout.astro
git commit -m "Enable Umami Analytics"
git push
```

---

## 🎉 What's Deployed

✅ Astro static site (184KB, 11 pages)  
✅ PDPA-compliant Privacy Policy (Thai)  
✅ PDPA-compliant Terms & Conditions (Thai)  
✅ Cookie Policy with disclosure (Thai)  
✅ Cookie consent banner (client-side)  
✅ Blog with 3 posts  
✅ Umami Analytics placeholder  
✅ Production Docker configuration  

---

## 📞 Support

**Easypanel URL:** http://110.164.146.46:3000  
**Git Repository:** https://git.moreminimore.com/kunthawat/dealplustech.git  

**If build fails:**
1. Check Easypanel build logs
2. Verify Dockerfile is at correct path
3. Check port is set to 3000
4. Review error messages in logs
