Here is my Vagrantfile.
config.vm.define :web do |web|
web.vm.box = "ubuntu/trusty64"
web.vm.network "private_network", ip: "192.168.100.111"
web.vm.network "forwarded_port", guest: 22, host: 4444, id: "ssh", auto_correct: true
web.vm.synced_folder "./web/", "/srv/"
web.vm.provider "virtualbox" do |vb|
vb.gui = true
vb.name = "web"
vb.cpus = 2
vb.memory = "1024"
end
end
I have my VM work fine, but i need to change web.vm.synced_folder "./web/", "/srv/" to another paths. I try to change it and than vagrant reload, vagrant provision, vagrant reload web --provision, and all the other posibile variants of that. These actions won't have effect. The only way to change synced folders is to destroy VM and up it again. This is not what i want. I need to reload configuration without destroying VM and that is the issue it won't work for me.