Hey folks, I’m using trellis with vagrant from Windows 10.
After I vagrant up from within mysite.com/ansible, when I vagrant ssh and then cd /vagrant I see the files from the ansible subdirectory.
How do I access the site folder from the VM? I want to work with sage and need to run bower etc. from inside Vagrant.
Thanks.
starise
2
By defaults /vagrant
points to X:/mysite.com
Have you changed something?
You probably forgot to move Vagrantfile
to the root directory X:/my.site.com
On vagrant up
you should see an output like that:
==> default: Mounting shared folders...
default: /vagrant => X:/my.site.com
default: /srv/www/my.site.com/current => X:/my.site.com/site
and obv you can access to the site folder on /srv/www/my.site.com
and /vagrant/site
1 Like
Thanks man that fixed it, appreciate it.
Wassim
4
I can’t find anything in docs about moving the Vagrantfile to the root dir.
I have this setup:
myproject.com
-> ansible (Vagrantfile is here)
-> site (bedrock)
If I move the Vagrantfile, I have to change the ANSIBLE_PATH. Are you sure about this?
Edit: Actually, we don’t have to move anything. Just ssh and cd /srv/www/yourproject/current after vagrant up.