Deploying to WP Engine
This guide covers the deployment process for the Dealers Site on WP Engine.
Deployment Options
Option 1: Git Push (Recommended)
WP Engine supports deploying directly from a Git repository.
One-time setup:
# Add WP Engine Git remote (get exact URL from WP Engine portal → Git Push)
git remote add wpengine [email protected]:production/dealersscottsdale.git
git remote add wpe-staging [email protected]:staging/dealersscottsdale.git
Deploy to staging:
git push wpe-staging main
Deploy to production:
git push wpengine main
Option 2: WP Engine Portal (Code Push)
- Test changes thoroughly on staging.
- In WP Engine portal, navigate to the dealersscottsdale site.
- Click Staging → Push to Production.
warning
This copies the entire staging environment (files + database) to production. Ensure the content team has not made production-only changes.
Option 3: SFTP
Use SFTP (credentials from WP Engine portal) for emergency deployments of individual files.
Pre-Deployment Checklist
- All changes tested on staging
- Theme assets compiled (
npm run prod) - Plugin updates tested on staging first
- Backup created (WP Engine portal → Backup Points)
- Maintenance mode enabled if doing database changes
- Content team notified of deployment window
Post-Deployment Steps
- Flush caches: WP Engine portal → Purge All Caches
- Flush object cache:
wp cache flushvia SSH/WP-CLI - Test key flows on production:
- Login and dealer dashboard
- Product browse and pricing display
- Checkout
- PDF invoice download
- Confirm pricing sync is running (check Middleware Platform sync logs)