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