Repository navigation
What's Changed
- Add
trellis doctorto check whether your servers are patched and up to date (#769) - Refresh the VM inventory when
trellis vm startfinds the VM already running (#770) - Ignore
known_hostsfor Lima VMs (#772) - Print the update notice to stderr (#771)
- Bump brotli and klauspost/compress to fix govulncheck (#760)
trellis doctor
Ubuntu's unattended-upgrades doesn't cover Nginx, PHP or MariaDB, since Trellis installs them from their own repositories, so they drift unless you upgrade them yourself. trellis doctor compares what's installed on each server with what's available from its apt sources and php.net, checks for a pending reboot, unattended-upgrades and Ubuntu's support window, and prints the trellis provision command to fix anything that isn't up to date.
trellis doctor production- With no arguments, it checks every environment except development
- Without
--fixit never uses sudo and changes nothing on servers.--fixoffers to run the suggested command for you --quietonly prints problems (useful for cron), and--offlineskips the php.net and GitHub lookups- Exits
0when nothing failed,1when a check failed, and2when something couldn't be checked
See Server updates for more.
Lima VM connection fixes
trellis vm startnow rewrites.trellis/lima/inventorywith Lima's current SSH port when the VM is already running (e.g. started withlimactl startor Lima's start-at-login). Before, provisioning and deploys to development failed with "Connection refused".- The VM's SSH options were being ignored because of a stray newline in the inventory. With that fixed, Trellis no longer checks
~/.ssh/known_hostsfor Lima VMs, which get a new SSH port on every boot, so a stale entry no longer causes "REMOTE HOST IDENTIFICATION HAS CHANGED".
Update notice
The "A new release of trellis-cli is available" notice now goes to stderr, so it no longer mixes into output like trellis info --json, and it's only checked when both stdout and stderr are terminals.
Full Changelog: v1.20.0...v1.21.0