Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shared path on guest != Document Root #249

Open
EmanueleMinotto opened this issue Oct 24, 2015 · 5 comments
Open

Shared path on guest != Document Root #249

EmanueleMinotto opened this issue Oct 24, 2015 · 5 comments

Comments

@EmanueleMinotto
Copy link
Contributor

As reported in the title, the shared path is always /vagrant even if I set /var/www, is it wanted or a bug?

I know these should be different, what I mean is that it's always /vagrant.

@kanafghan
Copy link

Where do you set the /var/www?

You can do so, in Vagrantfile as so:

config.vm.synced_folder "c:/dev/vagrant/webroot", "/var/www", type: "nfs"

As default the shared folder on the guest machine is hardcoded to /vagrant. It would have been nice though to have this also as input.

@EmanueleMinotto
Copy link
Contributor Author

As default the shared folder on the guest machine is hardcoded to /vagrant. It would have been nice though to have this also as input.

That's what I meant, good to know, I hope to send a PR asap. :)

@debo
Copy link
Member

debo commented Feb 16, 2016

@EmanueleMinotto I'm not sure I follow entirely but so that you know, regardless configuration, Vagrant always create a /vagrant shared folder in the guest no matter what. However, my understanding, is that even if you specify a different shared folder (in Phansible), the specified folder shate is not created at all. Is that correct?

@aoga88
Copy link
Contributor

aoga88 commented Sep 2, 2016

Same issue for me @debo, I set up Apache root as /opt/test/public but nfs default is /vagrant, would be nice to be able to setup your synced path or even better, a group of paths if you want to sync a bunch of folders

@debo
Copy link
Member

debo commented Sep 2, 2016

@aoga88 you can setup a custom path for the shared folder and you can match that one to the docroot. I appreciate is not ideal though and be able to specify a list would be better. I'll have a look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants