2017-07-24 86 views
0

形式的rsync這是Vagrantfile:流浪正在尋找在Windows

# -*- mode: ruby -*- 
# vi: set ft=ruby : 

VAGRANTFILE_API_VERSION = "2" 

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| 
    config.vm.define :sylius do |sylius_config| 
     sylius_config.vm.box = "debian/jessie64" 

     sylius_config.vm.provider "virtualbox" do |v| 
      v.gui = false 
      v.memory = 1024 
      v.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"] 
     end 

     sylius_config.vm.synced_folder "sites/", "/var/www/sites", type: "smb" ,mount_options: ['rw', 'vers=3', 'tcp', 'fsc', 'nolock', 'actimeo=2'] 
     sylius_config.vm.network "private_network", ip: "10.0.0.200" 

     # Shell provisioning 
     sylius_config.vm.provision :shell, :path => "shell_provisioner/run.sh" 
     sylius_config.vm.provision :shell, privileged: false, path: "shell_provisioner/module/sylius.sh" 
    end 
end 

當我輸入無業遊民了,我得到這個:

==> sylius: Checking if box 'debian/jessie64' is up to date... 
"rsync" could not be found on your PATH. Make sure that rsync 
is properly installed on your system and available on the PATH 

份額類型是「尖兒」,我可以看到任何爲什麼vagrant正在搜索rsync的原因。有任何想法嗎?如果有問題,我使用virtualbox作爲提供者。我嘗試刪除類型參數,但它不起作用。當我複製Vagrantfile時,共享類型是「nsf」,它需要rsync。

回答

0

此框具有rsync類型的默認同步文件夾。

如果您查找框的Vagrantfile(在Mac上其在〜/ .vagrant.d /盒/ Debian的VAGRANTSLASH-jessie64 // VirtualBox虛擬/ Vagrantfile)

Vagrant.configure("2") do |config| 
    config.vm.base_mac = "0800278dc04d" 
    config.vm.synced_folder ".", "/vagrant", type: "rsync" 
    config.vm.post_up_message = "Vanilla Debian box. See https://atlas.hashicorp.com/debian/ for help and bug reports" 
    #TODO check if this is still needed now that we use import2vox 
    config.vm.provider "virtualbox" do |v| 
     v.customize ["modifyvm", :id, "--cableconnected1", "on"] 
    end 

end 

您需要修改此文件並改變它,或在你當前的Vagrantfile中,覆蓋默認或smb類型的類型。