Skip to content

Instantly share code, notes, and snippets.

@dcousineau
Last active December 27, 2015 19:39
Show Gist options
  • Save dcousineau/7378046 to your computer and use it in GitHub Desktop.
Save dcousineau/7378046 to your computer and use it in GitHub Desktop.
nfs_setting = RUBY_PLATFORM =~ /darwin/ || RUBY_PLATFORM =~ /linux/
if nfs_setting
config.vm.synced_folder "./", "/vagrant-nfs", id: "vagrant-root", :nfs => nfs_setting
config.bindfs.bind_folder '/vagrant-nfs', '/vagrant'
else
config.vm.synced_folder "./", "/vagrant", id: "vagrant-root"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment