Skip to content

Vagrant repo location #33

@moore3071

Description

@moore3071

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?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions