trellis new mysite.ie
Creating new Trellis project in /mnt/h/webdev/roots/mysite.ie
Site domain [mysite.ie]:
✔ mysite.ie
Initializing project...
[✓] Created virtualenv (/mnt/h/webdev/roots/mysite.ie/trellis/.trellis/virtualenv)
[✓] Ensure pip is up to date
⠏ Installing dependencies (this can take a minute...)
pip install taking longer than expected. Switching to verbose output:
I never get any further than this.
The process completes if I use a folder within WSL (e.g. \wsl.localhost\home\roots\mysite.ie) but then that causes all kinds of other errors. Should I be using the /mnt/ folder or a folder within WSL?
Yes, it does seem to be a problem of speed when communicating between WSL and the mounted folders. It’s much faster running these commands on a folder within WSL, but then that gets really complicated too (drfs folders and vagrantfile customisations).
With Trellis CLI and Bud I am finding Roots-Windows development even more difficult than it used to be. Docker and Lando sound intriguing but figuring out a whole other stack does not Don’t suppose there’s an online guide for this?
I’ll continue for now with Laragon (like wamp), and WSL for compiling Acorn assets / deploying remote sites.
We use Radicle with Lando on our team. Several team members use WSL2 and several use OSX.
We weren’t able to set up a good Radicle+Trellis+WSL2 dev environment on the WSL2 machines, since we ran into the exact same problems as mentioned by you.
Lando works like a charm on both systems.
There’s only one annoying obstacle when running Lando on WSL2 and that’s trouble with the local SSL certificates.
I’d like to share the section from our developers’ guideline for Lando+WSL2:
HTTPS connection error on WSL2
On a WSL2 setup, you’ll very likely run into trouble with Lando’s local SSL certificate for the host lndo.site.
Open a PowerShell as an administrator and run the following command. Let’s say you run Ubuntu as your Linux distro and your username is pioneer. The command would look like this. Adjust accordingly for other distros and other users.