Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save lee-pai-long/7dd52f809c1bf35dcffb3f5ef888a30d to your computer and use it in GitHub Desktop.
Save lee-pai-long/7dd52f809c1bf35dcffb3f5ef888a30d to your computer and use it in GitHub Desktop.

[VAGRANT] don't share working directory

When working with multiple VM vagrant project, it may be useful to not share the working directory but a subdirectory for each machine, to prevent vagrant from sharing the top project working directory add the following to the Vagrantfile :

Vagrant.configure('2') do |config|
  config.vm.synced_folder '.', '/vagrant', disabled: true
  # ...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment