Hi everyone. After discovering Roots this week, I have been trying to get Trellis + Bedrock + Sage to work in my machine (MBP 16" M1 Pro, running macOS Monterey), but haven’t been able to get past Trellis.
The aim of this topic is primarily to document and troubleshoot the most basic Trellis local setup.
And additionally, to add more details that could be useful to other users down the line.
As I was writing this topic, the local development env. started working after running “trellis up”.
Problem is, after a while, it stopped working, and I haven’t been able to get it up again using these commands: vagrant up
, vagrant provision
, vagrant reload
.
So here are my first two questions:
- Does it matter to have a correct Vagrant version installed before running the
trellis new ...
command? - Does Ansible need to be installed on macOS? I could not make it work without it before. (By the way, after having a mess with Ansible when installing/uninstalling in both Homebrew and Python3, the last one I installed was via Homebrew).
- How can it stop providing the wordpress to
trellis1.test
in this case, when apparently not showing any error? Am I missing something? This also happened in my Hackintosh (Intel + VirtualBox). Is this because of NFS? Would that mean there’s no way to develop with Trellis on the latest macOS’s?
This is the setup I followed in my machine to make it work:
- Installed python3 with Homebrew
- Installed trellis-cli with Homebrew
- Installed Vagrant 2.2.17 downloading the Amd64 macOS package from the official website
- Installed the “vagrant-parallels” plugin:
vagrant plugin install vagrant-parallels
- Ran command in my Projects’ directory:
trellis new trellis1.com
- Replaced
vagrant_box
andvagrant_box_version
as per this documentation - Ran command
trellis up
in trellis1.com/trellis directory
And the site is working now, although I needed to do this to be able to log in.
The credentials admin:admin
don’t work in trellis1.test/wp/wp-login.php
.
Other notes:
- Kind of tried to use VMWare Fusion Tech Preview, and Multipass, but did not make it past they not being Vagrant providers (not that it really matters, as users seem to have issues with anything but Parallels here).
- Tried using Local by Flywheel with Bedrock and Sage, but got issues with the Acorn dependency needing a php version higher than 8.0, which is not possible in Local by Flywheel, and other dependency issues that I can’t recall anymore.
Being a newbie in anything but front-end, I can’t really tell if this is a good idea; I haven’t tried Lando/Docker yet, and I’ve never used Wordpress outside Shared Hosting providers and Local/Docker this week (without Bedrock nor Sage), but wanted to have a good developer experience that Wordpress just doesn’t provide out of the box.
All the dependencies’ issues explained above, also happened to me yesterday when I was trying to make Trellis work in my Hackintosh (Intel). It ended up working using VirtualBox, Vagrant@2.2.18 and Ansible@5.7.1 installed with python3.
All in all, this experience left me without confidence in this setup. I would really appreciate if someone experienced could share some insights on this, and will try to update this topic so the information in it is more useful and accurate.
Thank you for your time and help.