Chapter VIII
Shipping your app
Shipping is putting a chamber's app on the internet, on Vercel. The SHIP IT sign on a chamber's far wall shows where it stands; press E on it (or Ship on the chamber's row in the ledger) to open the panel. Only you ship: coders and testers never deploy.
Setting a chamber up
The first time, the panel asks how this chamber ships and which Vercel project it uses (it can create one named after the repo). It uses the Vercel command line on this machine, logged in as you; if it isn't, run vercel login in a terminal and press Check.
If a Vercel project already builds the repo, the panel picks it and says so (the oldest, if two do): the dungeon never makes a second one, which would build every merge twice. Setting up has Vercel build main straight away, and until that build is done Live now says where the app will be, such as myapp.vercel.app.
If you aren't sure, start with the first. Launch moves you to the second when the app gets its own address, so most chambers never need to choose again.
- Every merge goes live (start here): Vercel builds each merge to
mainfrom GitHub and puts it live on the free vercel.app address. Nothing to press. Pick it while you build something new that nobody relies on yet. The catch: a merge that breaks the app is live at once, until you press Undo last ship. - GitHub builds, you ship: Vercel builds every merge from GitHub but holds it back, and Ship it puts the newest build of
mainlive in seconds. Pick it once people use the app and you want to choose when changes reach them. The catch: nothing goes live until you press Ship it. - Deploy from the dungeon: when you press Ship it, the dungeon sends
mainfrom this computer to Vercel to build, and Preview gives you a link to a test copy first. Pick it when Vercel can't be connected to the GitHub repo. The catch: each ship waits for a full build, only this computer can ship, and pull requests get no preview links of their own.
With the first two, Vercel also builds every pull request and gives it a preview link of its own.
Launching
When the app is ready, Launch gives it its own address, such as myapp.example.com (set your own domain in the ledger's Settings and Launch suggests one under it), and from then on merges wait for Ship it instead of going live by themselves. The first ship of any chamber asks you first and lists the pull requests it puts live; if the app isn't live anywhere yet, it says the app becomes public.
What the panel shows
- Live now: the address, the commit, and since when.
- Waiting to ship: the pull requests merged since then.
- Ship it stays greyed out, with the reason, while
main's checks fail, while Vercel is still building, or when nothing is waiting. - Ship log: who shipped what, and when.
Undo
Undo last ship puts the previous version back live in seconds (Go back to… reaches older ones). main still has the change that broke it, so Ship it stays locked until main moves on, and a chamber where every merge goes live pauses until you press Resume. Two buttons follow up: Revert those changes files an issue for a coder to undo them, and Fix it forward files one to fix what broke. Either way the fix goes through QA like any other work.