Skip to content

Instantly share code, notes, and snippets.

@ktimothy
Created August 10, 2015 09:56
Show Gist options
  • Save ktimothy/ec71ec4d5396a0046b47 to your computer and use it in GitHub Desktop.
Save ktimothy/ec71ec4d5396a0046b47 to your computer and use it in GitHub Desktop.
# Set the type of synced folders, depending on host os.
# Default VirtualBox folders cause symbolic links and unix socket bugs.
# So for Mac and Linux hosts we use NFS. Windows does not support it.
# So Windows host use rsync. Note that you should run vagrant rsync-auto.
synced_folder_type = FFI::Platform::IS_WINDOWS ? :rsync : :nfs
# Share an additional folder to the guest VM. The first argument is
# the path on the host to the actual folder. The second argument is
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
config.vm.synced_folder ".", "/vagrant", type: synced_folder_type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment