📝 Add deployment troubleshooting guide

This commit is contained in:
Kunthawat Greethong
2026-03-10 10:30:38 +07:00
parent 32678eee22
commit a30b4da2cb

64
DEPLOY_INSTRUCTIONS.md Normal file
View File

@@ -0,0 +1,64 @@
# Deployment Instructions - Dockerfile Build
## ✅ Current Status
- Latest commit: `32678ee` - PDPA features added
- Cookie consent: ✅ Added to layout.tsx
- Cookie policy page: ✅ `/cookie-policy` exists
- Build status: ✅ 14 pages including cookie-policy
## 🚨 If You Don't See Changes After Docker Build
### Problem: Easypanel/Docker is caching old build
### Solution 1: Force Clean Rebuild
```bash
# In Easypanel:
1. Go to service settings
2. Click "Redeploy"
3. Wait for build to complete (3-5 minutes)
4. Hard refresh browser: Cmd+Shift+R (Mac) or Ctrl+Shift+R (Windows)
```
### Solution 2: Check Docker Build Logs
```bash
# In Easypanel logs, you should see:
✓ Generating static pages (70/70)
├ ○ /cookie-policy 143 B
```
If you DON'T see `/cookie-policy` in build output, Docker is using old code.
### Solution 3: Verify Dockerfile Configuration
In Easypanel service settings:
- **Build Type:** Dockerfile
- **Dockerfile Path:** `./Dockerfile` (NOT auto-detect)
- **Port:** `3000`
### Solution 4: Clear All Caches
1. Clear browser cache completely
2. Try incognito mode
3. Check different browser
## ✅ What You Should See
After successful rebuild:
- ✅ Cookie banner at bottom (first visit only)
-`/cookie-policy` page accessible
- ✅ Footer may have links (if added)
- ✅ All 14 pages built
## 📊 Verification Commands
```bash
# Check if code exists in repo
git log --oneline -1
# Should show: 32678ee ✨ Add PDPA compliance features
# Check if CookieConsent exists
ls src/components/CookieConsent.tsx
# Should exist
# Check layout.tsx has CookieConsent
grep "CookieConsent" src/app/layout.tsx
# Should show import and render
```