The default action of synced folder is to sync the project root on the host to '/vagrant' on the guest.
But if I need to only sync a sub-dir of the project root use the 'synced_folder' option, e.g., config.vm.synced_folder 'part/', '/vagrant/part', after the specified part is done, the project root is then automatically synced .
The question is in this case how to disable the default behavior that always sync the project root?
solved , it's related with vagrant not any plugin ..
add this line in vagrantfile:
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.synced_folder 'what', '/ever/need/sync'
The default action of synced folder is to sync the project root on the host to '/vagrant' on the guest. But if I need to only sync a sub-dir of the project root use the 'synced_folder' option, e.g., config.vm.synced_folder 'part/', '/vagrant/part', after the specified part is done, the project root is then automatically synced .
The question is in this case how to disable the default behavior that always sync the project root?