Currently trying to set up the development environment with trellis / bedrock and running into this issue which I hadn’t seen in a previous setup. I deleted the vagrant VM and started from scratch to ensure that everything would provision as expected when I started encountering this issue:
fatal: [domain.test]: FAILED! => {“changed”: false, “msg”: “/srv/www/domain.test/current exists but is not a symbolic link”}
When I SSH into the box via trellis ssh development domain.test and go to /srv/www/domain.test I see that the current folder contains the contents of the /web directory. There is notably no releases folder.
I’ve tried deleting the box and reprovisioning many times, but no luck. I haven’t changed any of the default roles.
Well there’s the problem. As I said above deploys aren’t used in development. Though there’s nothing preventing it but as you’ve encountered it can cause issues.
In development all you do is provision once (or whenever you make changes to Trellis files, not site/bedrock/themes ones). Any changes you make within your site folder will be synced automatically thanks to Vagrant.
Easiest way to fix it is to re-create the VM and don’t deploy
Ahh, of course! New to the roots ecosystem, but it’s been an amazing adventure. Thanks for all of the help, feels good to finally get to the bottom of it after many hours of struggle… It’s always something simple
Appreciate the support and excited to have joined the community.