According to the documentation the repo should be in /home/vagrant/cwdg-website. When booted the vagrant box syncs the repo to /vagrant due to the vagrantfile line 13-16:
if `uname`.include? "Linux"
config.vm.synced_folder '.', '/vagrant', type: 'rsync'
elsif `uname`.include? "Darwin"
config.vm.synced_folder ".", "/home/vagrant/cwdg-website"
end
My guess is that uname is running on the host machine, but I'll analyze both cases.
- If
uname is being run on the vm vagrant makes, then why is there a case for Mac (Darwin)?
- If not then
- aren't we missing the case of other OSs especially Windows which is the reason the vagrant box exists?
- Why do we sync to two different locations depending on host OS?
According to the documentation the repo should be in
/home/vagrant/cwdg-website. When booted the vagrant box syncs the repo to /vagrant due to the vagrantfile line 13-16:My guess is that
unameis running on the host machine, but I'll analyze both cases.unameis being run on the vm vagrant makes, then why is there a case for Mac (Darwin)?