Skip to content

WP Migration Factory

Repo: savvydealer-adam/wp-migration-factory · Path: C:/Users/adam/wp-migration-factory · Owner: Adam Status: Live · % Done: 80 · Last commit: 2026-03-24 Deployed: https://website.savvydealer.ai

What it is

Spec-driven website migration factory — ingests WordPress (or any) sites and rebuilds them as lightweight FastAPI + static HTML apps on Cloud Run. Strategy #1: Full migration.

Why it exists

Replace slow, expensive WP dealer sites with fast, cheap, SavvyDealer-controlled runtimes without rewriting every site by hand. One dashboard tracks every client migration and domain queue.

How it works

  • FastAPI dashboard API + React/Vite UI, Supabase (yjdrcdzstqxtjtzmbjcc) for state
  • CLI cli/migrate_cli.py drives phases: crawl → spec → build → verify → deploy
  • Per-site runtime: runtime/<site_id>/app.py (FastAPI + uvicorn, python:3.12-slim)
  • MCP server at dashboard/mcp/mcp_server.py bypasses RLS for automation (wp-migration in mcp.json)
  • 8-phase SOP documented in migration_runbook.md

What's done

  • End-to-end migration pipeline (Phase 0-8) operational
  • Dashboard live at website.savvydealer.ai with site CRUD + domain queue
  • Reference migrations: Compton & Smith, Brighton Ford, Jarrett Scott Ford
  • MCP server exposing list/create/update sites and queue domains

What's next

  • More client migrations through the factory
  • Tighten audit step (validate images with file first, deploy once)
  • Reduce manual spec authoring

Where the code lives

  • Dashboard: dashboard/api/ (FastAPI) + dashboard/web/ (React)
  • CLI: cli/migrate_cli.py
  • Specs: spec/site.spec.schema.json + examples/*.site.spec.yaml
  • Deploy: dashboard/Dockerfile → Cloud Run wp-migration-dashboard (GCP savvydealer-website)

Integrations

  • Peer strategies: savvy-demo (Strategy #2), savvy-page-builder (Strategy #3)
  • Supabase yjdrcdzstqxtjtzmbjcc
  • MCP server wp-migration (in ~/.claude/mcp.json)

Don't rebuild this — extend it

If you're migrating a whole dealer site off WordPress, use this factory. For single CMS pages use savvy-page-builder; for sales demos use savvy-demo.