Symbolic links and synced folders in Vagrant

后端 未结 6 1439
独厮守ぢ
独厮守ぢ 2020-12-02 04:28

I want to use Vagrant to provide a common development environment to my team. The hosts are completely different:

  • Some use OS X, some Linux, and some Windows.<
6条回答
  •  甜味超标
    2020-12-02 04:48

    Add the following line to Vagrantfile:

    config.vm.provider "virtualbox" do |v|
        v.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"]
    end
    

    This worked for me ONLY after i downgraded virtualbox 6.0.8 to 6.0.4 and vagrant 2.2.4 to 2.2.1.

    when you open terminal ( i use git bash on windows 10) with "Run as Admin".

    also try in git bash changing : in project file: $ vim .git/config change to symlinks = true

    [core]
            repositoryformatversion = 0
            filemode = false
            bare = false
            logallrefupdates = true
            symlinks = true
            ignorecase = true
    [remote "origin"]
            fetch = +refs/heads/*:refs/remotes/origin/*
    [branch "master"]
            remote = origin
            merge = refs/heads/master
    

提交回复
热议问题