Skip to content

Instantly share code, notes, and snippets.

@stefthoen
Last active March 24, 2021 13:29
Show Gist options
  • Save stefthoen/332355ab59ac630fe4630c2c6120ec2c to your computer and use it in GitHub Desktop.
Save stefthoen/332355ab59ac630fe4630c2c6120ec2c to your computer and use it in GitHub Desktop.
Update Trellis

https://discourse.roots.io/t/lets-encrypt-certificate-expired/7171/3

It might be fastest to back up your database and uploads and try reprovisioning your server with a fresh copy of Trellis (and all your configs, of course).

Here’s a quick overview of how I update Trellis. There are better ways but this is fast:

Copy the following out of your Trellis directory:

.vault_pass
ansible.cfg
/group_vars
/deploy-hooks
/hosts

Delete everything in your Trellis directory Clone Trellis from source into your Trellis directory Copy back in and overwrite the following:

.vault_pass
ansible.cfg
/group_vars/development
/group_vars/staging
/group_vars/production
/group_vars/all/mail.yml
/group_vars/all/vault.yml
/deploy-hooks
/hosts

Then back up your database and uploads again!!! and rebuild and reprovision your server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment