← All guides

Lovable ownership guide

Export your Lovable app from preview to a VPS you own

LovableSupabaseVPSDomain

Short answer

The same app running on your VPS, with HTTPS on your domain, a database you control, backups, and a deploy path you own.

Why this matters

The app works in Lovable but you do not control the server, the domain, the database, or the deploy process. You want ownership.

Walkthrough

  1. 01

    Get the code out of Lovable

    Export or sync the project so you have a real GitHub repo you control.

    • Connect the Lovable project to your GitHub account.
    • Verify the repo has all files, including config and build scripts.
    • Clone locally and confirm the app builds with `npm run build`.
  2. 02

    Set up the VPS

    A fresh VPS needs a deploy layer, domain routing, and SSL before the app lands.

    • Install a deploy panel (Dokploy) or set up Docker Compose.
    • Point your domain DNS to the VPS IP.
    • Configure HTTPS routing before deploying the app.
  3. 03

    Migrate data and hand over

    Move the database, wire env vars, and confirm everything works before switching traffic.

    • Export Supabase data if you are self-hosting, or keep managed Supabase and update env vars.
    • Deploy the app on the VPS and run a full smoke test.
    • Hand over server credentials, domain config, and a runbook.

Where RepoAssistant fits

RepoAssistant handles the full Lovable-to-VPS migration so you own the server, domain, and database.