Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 588 Bytes

sync-folder-to-vagrant-box.md

File metadata and controls

18 lines (13 loc) · 588 Bytes

Sync Folder to Vagrant box

Vagrant provides many ways to exchange folders/files with the virtual machine. Rsync is a simple one and is done as follow:

#         proc_name     host folder  vm folder   method of communication
config.vm.synced_folder "."        , "/vagrant", type: "rsync"

If you needed to disable the synchronization temporarily you can append , disabled: true to the sync_folder call:

config.vm.synced_folder ".", "/vagrant", type: "rsync", disabled: true

More options can be found here