From 547cb6c4c5a8f0833ac3519b214e7dc25b83dbb5 Mon Sep 17 00:00:00 2001 From: dwindown Date: Sun, 16 Nov 2025 11:04:20 +0700 Subject: [PATCH] docs: Add comprehensive deployment guide MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 📝 Created DEPLOYMENT_GUIDE.md: - Step-by-step server deployment process - Cache clearing procedures (OPcache, WordPress, Browser) - File verification commands - Endpoint testing procedures - Common issues & solutions - Verification checklist - Rollback procedure - Production checklist 🎯 Covers All Common Issues: 1. SPA not loading (dev mode detection) 2. API 500 errors (namespace case) 3. WordPress media not loading (standalone) 4. Changes not reflecting (cache layers) ✅ Ready for Server Deployment! --- DEPLOYMENT_GUIDE.md | 234 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 234 insertions(+) create mode 100644 DEPLOYMENT_GUIDE.md diff --git a/DEPLOYMENT_GUIDE.md b/DEPLOYMENT_GUIDE.md new file mode 100644 index 0000000..b61b2b2 --- /dev/null +++ b/DEPLOYMENT_GUIDE.md @@ -0,0 +1,234 @@ +# Deployment Guide + +## Server Deployment Steps + +### 1. Pull Latest Code +```bash +cd /home/dewepw/woonoow.dewe.pw/wp-content/plugins/woonoow +git pull origin main +``` + +### 2. Clear All Caches + +#### WordPress Object Cache +```bash +wp cache flush +``` + +#### OPcache (PHP) +Create a file `clear-opcache.php` in plugin root: +```php + + +# 3. Clear caches +php -r "opcache_reset();" +wp cache flush + +# 4. Verify +curl -I https://woonoow.dewe.pw/wp-json/woonoow/v1/store/settings +``` + +--- + +## Production Checklist + +Before going live: + +- [ ] All features tested +- [ ] No console errors +- [ ] No PHP errors in logs +- [ ] Performance tested +- [ ] Security reviewed +- [ ] Backup created +- [ ] Rollback plan ready +- [ ] Monitoring in place + +--- + +## Support + +If issues persist: +1. Check error logs: `/home/dewepw/woonoow.dewe.pw/wp-content/debug.log` +2. Check PHP error logs: `/var/log/php-fpm/error.log` +3. Enable WP_DEBUG temporarily to see detailed errors +4. Contact development team with error details