Skip to main content

Deploying to WP Engine

This guide covers the deployment process for the Dealers Site on WP Engine.


Deployment Options

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)

  1. Test changes thoroughly on staging.
  2. In WP Engine portal, navigate to the dealersscottsdale site.
  3. 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

  1. Flush caches: WP Engine portal → Purge All Caches
  2. Flush object cache: wp cache flush via SSH/WP-CLI
  3. Test key flows on production:
    • Login and dealer dashboard
    • Product browse and pricing display
    • Checkout
    • PDF invoice download
  4. Confirm pricing sync is running (check Middleware Platform sync logs)