1.6 KiB
1.6 KiB
Deployment Instructions - Dockerfile Build
✅ Current Status
- Latest commit:
32678ee- PDPA features added - Cookie consent: ✅ Added to layout.tsx
- Cookie policy page: ✅
/cookie-policyexists - 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
# 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
# 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
- Clear browser cache completely
- Try incognito mode
- Check different browser
✅ What You Should See
After successful rebuild:
- ✅ Cookie banner at bottom (first visit only)
- ✅
/cookie-policypage accessible - ✅ Footer may have links (if added)
- ✅ All 14 pages built
📊 Verification Commands
# 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