Building Localport: making local WordPress development a coherent workflow
Getting a hosted WordPress site running locally should be the beginning of the work. Too often, it becomes a project of its own: finding the right environment, exporting a database, copying files, fixing URLs, connecting code, and remembering which local copy is current.
I built Localport as an independent personal project to bring those steps into one development workspace. It started around WP Engine and Docker, and grew into a dashboard with WP Engine, Pressable, and Pantheon workflows, archive imports, code mappings, and an Electron desktop preview.
The interface is part of the infrastructure
A pull is not a single operation. It crosses a hosting API, SSH, the filesystem, a database, containers, and local routing. A button that says “working” hides too much of that process.
Localport runs pulls as background jobs and records their state separately from the browser. The dashboard can show progress without owning the operation. If the backend restarts during a pull, the interrupted job is marked as failed rather than pretending it can safely resume a partially completed database import.
That distinction shaped the site library too. A failed attempt to pull a fresh copy should not make the last successful local copy disappear. Each fresh pull creates a separate copy; the local route switches after success. The interface represents the usable copy and the newest job as different pieces of information.
Separate discovery from execution
The library caches provider listing metadata so the workspace can reopen without waiting for every hosting API. Older lists can refresh in the background, and the last saved list stays visible during a provider outage.
A cached card is not permission to perform a pull. Localport resolves source details through the provider when a pull starts. Keeping discovery and execution separate makes the workspace more responsive without treating stale metadata as current authority.
A local URL should feel ordinary
Localport uses Docker Compose for its local runtime and Caddy for hostname routing. A completed environment opens at a local HTTPS address instead of asking me to keep track of ports. The Windows setup uses mkcert to establish local trust; the certificate authority’s private key stays on the host, while the proxy receives the leaf certificate it needs.
SSH trust is explicit as well. New WP Engine hosts show SHA-256 fingerprints for confirmation, and a changed host key fails verification rather than being silently replaced. Those steps add friction where a decision actually matters.
Connect the code I am editing
A working local site is only useful if it runs the code I want to change. Code mappings bind selected theme, plugin, or MU-plugin folders from a checkout into the local WordPress container and its WP-CLI runtime.
Applying mappings recreates the WordPress container briefly. The mount hides the original folder rather than deleting it, and removing the mapping reveals that folder again. The mappings are writable, so WordPress can modify the mapped repository files. Those consequences belong in the interface, not just in setup instructions.
Review differences before promising a merge
The Compare & Merge preview compares original, local, and incoming ACF database definitions. Stable field and group keys matter more than database post IDs, which can differ between environments.
The report distinguishes incoming changes, local changes, matching changes, and conflicts. A conflict means both versions differ from the original and each other; it does not tell me which version is correct. The parser treats uploaded SQL as data rather than executing it.
This milestone is deliberately read-only. It does not merge definitions, compare saved content values, or apply migrations. A separate push preview inspects selected content differences against an origin baseline, but it is not a deployment system. Showing those boundaries clearly is part of building a trustworthy tool.
What I would build next
The next step is a reviewable change plan, followed by validation in an isolated copy. Fresh conflict checks, dependency handling, backups, and rollback need to exist before applying a plan becomes a routine action. The Electron shell also needs more packaging and cross-platform setup work before broad distribution.
I have not measured a time-savings percentage or team-wide adoption, so I would not claim either. The concrete outcome is a local workspace that connects discovery, provisioning, routing, editing, and inspection instead of leaving each step as a separate manual task.
Explore the interactive Localport walkthrough. It uses fictional sites and simulated operations to demonstrate the workflow without exposing a real development machine. Read the project case study for the product and interface decisions.