Skip to content

Development Workflow

EnvironmentPurposeURL pattern
LocalDevelopment. Write code here.https://{site}.local
StagingTesting changes, client review.https://{site}.dev.onpressidium.com
ProductionLive site.https://{domain}.com
Staging ──pull.sh──→ Local ──code──→ Git push ──→ Production
  1. Pull from staging — Run pull.sh from the Local Site Shell to sync the staging database and files down to your local environment. See Pull Script.

  2. Develop locally — Make changes in Local. Preview at https://{site}.local.

  3. Push to Git — Commit and push to the GitHub repository. This triggers deployment to production.

  4. Test on staging — Staging is for testing changes before they go live, or for client review. It has its own database and can diverge from production.

  1. Install Local by WP
  2. Create a new site (or import an existing one)
  3. Clone the theme repo into wp-content/themes/
  4. Open Site Shell in Local (click the site → “Open Site Shell”)
  5. Run bash pull.sh to sync the staging database and files
  • Always pull from staging before starting work to ensure your local database is current.
  • The pull.sh script handles database export, download, table prefix fixing, URL search-replace, and file sync automatically.
  • WP-CLI commands (wp) must be run from the Local Site Shell — it provides the MySQL connection and PHP environment.