# Access site directory inside vagrant?

**URL:** https://discourse.roots.io/t/access-site-directory-inside-vagrant/4789
**Category:** trellis
**Created:** 2015-09-20T04:22:34Z
**Posts:** 4

## Post 1 by @eavonius — 2015-09-20T04:22:35Z

Hey folks, I’m using trellis with vagrant from Windows 10.

After I vagrant up from within [mysite.com/ansible](http://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.

---

## Post 2 by @starise — 2015-09-20T05:10:33Z

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`

---

## Post 3 by @eavonius — 2015-09-20T05:29:23Z

Thanks man that fixed it, appreciate it.

---

## Post 4 by @Wassim — 2015-10-06T19:41:54Z

I can’t find anything in docs about moving the Vagrantfile to the root dir.

I have this setup:

[myproject.com](http://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.
