Add SSH Keys to Trellis Post Launch

Sometimes you want to work with other developers post launch on a Roots Trellis project. In those cases you need to only add these new users. And that means you need to add ssh keys to Trellis you did not add yet. Ansible Tags Fortunately you do not need to provision the whole server again. […]

Trellis Setup with Laravel Valet

We often prefer working with Laravel Valet over working with Trellis. This as Trellis runs Vagrant which runs VirtualBox. Very heavy all that while you could use Laravel Valet which uses the resources your Mac has and only needs some extras using Homebrew. Trellis Valet Driver Now, there is a package you can use to […]

Trellis NET::ERR_CERT_REVOKED

Since my new MacOS Catalina setup I bumped into multiple Trellis issues. Issues with loading the proper interpretor as well as loading the proper Ansible version for the setup. Final issue I had now was dealing with failed SSL certificates and to be more specific NET::ERR_CERT_REVOKED . NET::ERR_CERT_REVOKED So how to deal with this NET::ERR_CERT_REVOKED […]

Trellis ‘PlaybookCLI’ object has no attribute ‘options’

With latest Ansible we had an issue starting up / provisioning vagrant properly. It would not provision properly stating there was an attribute called options missing. Attribute Options Errors Got the following error doing a ansible reload –provision ERROR! Unexpected Exception, this is probably a bug: ‘PlaybookCLI’ object has no attribute ‘options’ Suggestion at Roots […]

Trellis Ansible Bad Interpreter Error

Recently upgraded to MacOS Catalina and zsh shell. Since the upgrade it seems we have Python 3 and no longer 2.x so to work with older Trellis setups using Python 2.7 you need a fix Bad Interpreter Error Error we got using Ansible was a bad interpreter error. Python 2.7 is not to be found: […]

Trellis DO SSL Upgrade

To do a Trellis DO SSL Upgrade to have your Digital Ocean Droplet run Trellis with all secure https SSL urls several steps will need to be taken. Let me take you through them. Backup Digital Ocean Droplet Snapshot of server as a backup via Digital Ocean Control Panel. This will take 10-20 minutes on […]

Show all Database Users in Trellis

Sometimes you want to show all users in Trellis. Just to be sure a certain database user is there. I for example keep on forgetting the database username generated based on the group_vars/group/vault.yml. And I need it to access the database properly with Sequel Pro . So how do we do this? SSH into Box To […]

WordPress Multisite Database Migration

Recently we did a WordPress Multisite Database Migration on Trellis. All is pretty straightforward files wise though we did have to do some extra media work using a volume. The database on the other hand was a bit more problematic. WP CLI Database Import & URL Replacement Using wp-cli and aliases for the import and replacement: […]

Update Trellis like a Pro

professional

Here a quick blog post how to update Trellis like a pro. Requirements Here are some requirements or basically tips before you get started Trellis should be in its own repo not together with Bedrock/Site Always make sure you’re working in a Git repo Make sure all your work is committed Use a great IDE […]

MariaDB on Trellis Failed to Start – /usr/bin/mysqld_safe: No such file or directory

Post Digital Ocean restart to deal with security patches for vulnerabilities (Spectre and Meltdown Mitigation )MariaDB on Trellis failed to start. So the site failed to connect to the database and went down. MariaDB Down MariaDB was down and restarting it failed suggesting us to check journalctl -xe for more information. In the journalctl -xe […]