RunCabin Blog · For vibe coders · Part 2
Deploy your vibe-coded site from Claude Code or Cursor, with preview and undo
December 4, 2026 · 8 min read
Your site works on localhost. One line adds hosting to your coding tool, and from then on "put it online" gets you a live HTTPS address in the same chat. Every change after that gets a private preview before it goes live, and a bad version comes back off with one sentence. This is part 2 of our series for vibe coders; part 1 set up GitHub and an AGENTS.md that makes your agent commit every step.
First: will your project fit?
RunCabin hosts static sites: files that run in the visitor's browser. HTML, CSS and JavaScript, with no server of ours running your code.
- Fits: a landing page, a portfolio, a small-business site, docs, or a React, Vue or Svelte app that builds to a folder of files.
- Doesn't fit: an app with its own server code, database or server-side logins. Host that part somewhere else.
The quick test: if your build makes a folder (often dist/) with index.html at the top, it fits. A version can hold up to 200 files and 10 MB.
Step 1: add RunCabin to your coding tool, once
In Claude Code:
claude mcp add --transport http runcabin https://runcabin.com/mcp
Then run /mcp, pick runcabin, and sign in in the browser window that opens. Signing in makes your free account. There's no API key to paste anywhere.
In Cursor, add this under mcpServers in ~/.cursor/mcp.json:
"runcabin": { "url": "https://runcabin.com/mcp" }
In Codex CLI, run codex mcp add runcabin --url https://runcabin.com/mcp, then codex mcp login runcabin. VS Code, Windsurf and Gemini CLI are on the setup page.
Step 2: get the folder ready
Three things trip up almost every first deploy. Fix them before you publish and the rest is boring.
Use relative paths
Write style.css, not /style.css. A preview lives under a private path, so a file that asks for the top of the site misses and the preview loads bare. In Vite, set base: './' in vite.config and the build does it for you. Other build tools have a similar setting.
Pictures travel separately
A deploy carries text files: HTML, CSS, JavaScript, JSON, SVG and a few more. Photos, fonts and PDFs go up on their own, and they stay put across deploys. The agent fetches each one from a public https link, or gives you a photo link to open on your phone and pick them. A file in a private GitHub repository is not a public link.
An SVG logo is text, so it rides along in the deploy.
No keys in the files
Everything you deploy is public. Anyone can read a key that sits in your JavaScript and use it on your account. RunCabin refuses a deploy that contains a recognizable secret key (Stripe, AWS, GitHub, OpenAI, Anthropic and others). If one ever went out, make a new key at that service; the old one has been seen.
Step 3: the first publish
Say: "Build it and put it online with RunCabin." The agent runs your build, publishes the folder, and hands you a live HTTPS address on a free RunCabin address.
The reply also lists checks: places the site misses RunCabin's build guide, each with why it matters and what the fix looks like. The agent fixes them and publishes again to the same site, so the address doesn't change.
Have the agent write the site's id into your AGENTS.md, so every later publish goes to the same site. If you used the file from part 1, the line is waiting for it.
Every page gets a small "Built with RunCabin" badge and a visit counter, and your agent can tell you the visit numbers any time.
Step 4: every change after that, preview first
Say "preview it". The agent stages the new version on a private link and the live site doesn't change. Open the link on your laptop and on your phone.
When it looks right, say "make it live". That version becomes the site at once.
The preview link has a random token, so nobody can guess it, and it's kept out of search engines. Anyone you send it to can open it, so send it only to people who should see the draft.
Step 5: undo is one sentence
Something broke on the live site? Say "roll it back". The agent lists the site's versions, newest first, and puts the last good one live at once. You fix the code afterwards, calmly.
Every version is kept until the site is deleted, so you can go back further than one. The version you took off stays viewable on a private link, which helps when you're working out what went wrong.
One catch: uploaded pictures and fonts are not versioned. Replacing logo.png changes it on the live site at once, and a rollback won't bring the old one back. Give a changed picture a new name, like logo-2.png.
The whole loop
With part 1's AGENTS.md in place, a change goes like this:
- The agent makes a branch and commits each step that works.
- You say "preview it" and open the link on two screens.
- You say "make it live".
- The agent tags the commit with the version it made.
- If it breaks: "roll it back" first, fix it in git second.
Git holds every version of your code, and RunCabin holds every version of your live site. The tag joins them: git checkout deploy-123 shows exactly the code that was live as version 123.
When it's ready for its own domain
The free RunCabin address lasts 90 days from the day the site first goes live. RunCabin emails you a week before. To keep it online after that, move it to your own domain: $4.99 a month (or $47.99 a year), plus the domain.
Ask your agent to check a name. It can see whether the domain is free and what it costs, but it can't spend money: it hands you a checkout link, and you decide.
Questions
Can I deploy a React, Vue or Svelte app built with Vite?
Yes, if it builds to static files. RunCabin doesn't run a build or a server, so the agent runs the build on your computer and publishes the folder it makes, usually dist. Set base: './' in the Vite config so the built files use relative paths and previews load.
Why does my preview load without its styles or scripts?
The files ask for /style.css or /assets/app.js from the top of the site. A preview lives under a private path, so those addresses miss. Use relative paths and the preview and the live site both load.
Why are my images missing after I deploy?
A deploy carries text files only. Photos, fonts and PDFs go up separately, fetched from a public https link or picked from your phone through a photo link the agent gives you. A file in a private GitHub repository is not a public link.
How do I undo a bad deploy?
Tell your agent to roll it back. It lists the site's versions and puts an earlier one live at once. Every version is kept until the site is deleted. Uploaded pictures and fonts are not versioned, so give a changed picture a new file name instead of replacing it.
Is hosting a vibe-coded site on RunCabin free?
On a free RunCabin address, yes, for 90 days from the day the site first goes live, with no card. After that the site needs your own domain to stay online: $4.99 a month or $47.99 a year, plus the domain. Your agent hands you a checkout link for that; it can't spend money itself.
Your agent wrote it. Let it put it online.
Add RunCabin to Claude Code, Cursor, Codex or any MCP client and say "put it online". Free on a RunCabin address for its first 90 days online, and $4.99 a month on your own domain.
Add RunCabin to your coding tool →Rather have us build it? It's built with AI and finished by a web developer, for $29.99 a month with nothing up front. Start our planner
The series: part 1, source control and an AGENTS.md · part 2, deploy with preview and undo (this post). Related reading: is it safe to let an AI agent update your website? · what an AI agent can and can't do to your site · I have my website files: how do I put them online?