Move from yerd or Herd
Burrow can copy your setup from yerd, or from a Herd / Valet configuration, in one go. Your current tool keeps working until you decide to switch.
What comes over#
- Your sites, with their PHP version and HTTPS setting.
- The PHP versions you use, and your default.
- Node.js, Composer and the Laravel installer.
- Your services (MySQL, PostgreSQL, Redis), with their versions.
- Your databases, copied through a
.zipthat is kept in~/.local/share/burrow/backups/in case you need it again.
Moving from yerd works on Linux and, since 0.3, on macOS. yerd must be running so Burrow can ask it for your sites and databases: on Linux start it with systemctl --user start yerd, on a Mac open the Yerd app.
Step 1: copy everything#
In the app, open Migrate, choose the source, press Show plan, then Migrate from yerd (or Migrate from Herd / Valet). Or:
burrow migrate --plan # see what would happen; changes nothing
burrow migrate # do it
Watching it run#
The plan stays on screen while it runs, and each step shows its progress: waiting, a spinner while it runs, then ✓ or ✗. Click a step to open its own log; the running step and any failed step open by themselves. The full log of every command Burrow runs is in the console below the plan.
If a step fails, fix the cause (its log says what went wrong) and press Retry on that step. Only that step runs again, and it only does what is still missing. Refresh plan shows what is left to do.
Databases are copied one at a time, so one that fails (for example because it needs a PostgreSQL extension Burrow doesn't have yet) doesn't stop the others, and it is offered again on the next run. Databases whose names Burrow can't create (it allows letters, digits and _) are left behind, and the plan says which.
Nothing in yerd or Herd is changed. While the old tool is still running, Burrow's services use the next free ports (for example 3307 instead of 3306) so both work at the same time. Running it again only does what is still missing.
For Herd or Valet, point Burrow at the configuration folder (config/valet, for example copied from a Mac):
burrow migrate herd --herd-dir ~/valet-from-mac
Step 2: make Burrow your main tool#
When you're happy, press Make burrow primary… (or run burrow migrate --switch). Burrow:
- copies your databases once more, so you get the latest data (untick Copy the latest data from yerd first, or add
--no-copy, to skip this); - stops and disables yerd;
- moves its services and sites onto the usual ports (3306, 80/443 …);
- puts Burrow's
php,composerandnodeon your PATH.
Open a new terminal afterwards. Your sites now answer at their normal addresses, served by Burrow.
On a Mac#
Making Burrow primary works the same way, with two differences:
- Stopping yerd quits the Yerd app, stops its daemon (
launchctl bootout …/dev.yerd.daemon) and disables it, and removes Yerd from your login items, so its services don't take the ports again after a restart. If Burrow can't remove the login item, the log says so: turn it off in System Settings → General → Login Items. - Ports 80/443 reach Burrow through a forwarding rule rather than burrowd listening on them itself. Set it up once in Doctor (Forward ports 80/443 to burrow, asks for your password) or with
burrow setup. Setup also removes the forwarding yerd left behind, once yerd is stopped. If the forwarding isn't there yet, that step of the switch fails and tells you to open Doctor.
If .test names were still answered by yerd, the switch says so; fix Resolve *.test via burrowd in Doctor.
To go back to yerd, run burrow setup --keep-ports, move Burrow's services off yerd's ports, then start yerd again. On Linux: systemctl --user enable --now yerd. On a Mac, the switch turned yerd's background service off, so turn it back on with launchctl enable gui/$(id -u)/dev.yerd.daemon, then open the Yerd app (and add it back to Login Items if you want it to start at login).