Ga naar inhoud

πŸ‡¬πŸ‡§ Trellis upgrade lets encrypt

Older Trellis instances have been giving issues with renewing the Lets Encrypt certificate. The V1 endpoint is being deprecated. To use the new endpoint Trellis needs to be upgraded.

More: https://github.com/roots/trellis/issues/1113

Switch to correct Ansible version

Newer Trellis versions support Ansible 2.8+:

Terminal window
brew switch ansible 2.8.5_1

Provision server

The newer Trellis versions ship with PHP 7.4, so the server needs to be re-provisioned. This happens mostly without issues 🀞 .

Terminal window
trellis provision production

Troubleshooting

502 Bad Gateway

If the server is provisioned and shows a bad gateway it’s most likely that PHP didn’t start correctly.

Use:

Terminal window
root@site$ service php7.4-fpm restart

Enable caching

First run:

Terminal window
trellis provision --tags letsencrypt production

and then:

Terminal window
trellis provision --tags wordpress production