Хабр Курсы для всех
РЕКЛАМА
Практикум, Хекслет, SkyPro, авторские курсы — собрали всех и попросили скидки. Осталось выбрать!
иначе индексация на хосте в IDE будет вечной
git gcNFS и NFS Reverse — тупо отказались работать на OSX без плясок с бубном (по отзывам в интернете, тоже не решают вопрос фундаментально)NFS отлично решает этот вопрос. Важно, чтобы NFS сервер был именно в гостевой машине. SSHFS тоже неплохо работает. Конечно если вы запускаете Вагрант не на локальной машине, а где то на действительно удалённом сервере, то нужно иметь достаточно быстрое интернет подключение.
config.vm.synced_folder ".", "/vagrant", type: "nfs", mount_options: ['rw', 'vers=3', 'tcp', 'fsc']
config.nfs.map_uid = Process.uid
config.nfs.map_gid = Process.gid
config.vm.synced_folder "/.", "/www/project/code/local", type: "nfs"
There are errors in the configuration of this machine. Please fix the following errors and try again: Unison: * translation missing: en.vagrant_sync.config.host_folder_required * translation missing: en.vagrant_sync.config.guest_folder_required
$ vagrant -v
Vagrant 1.7.1
$ vagrant reload
There were warnings and/or errors while loading your Vagrantfile
for the machine 'default'.
Your Vagrantfile was written for an earlier version of Vagrant,
and while Vagrant does the best it can to remain backwards
compatible, there are some cases where things have changed
significantly enough to warrant a message. These messages are
shown below.
Warnings:
* Unknown configuration section 'sync'. If this section was part of
a Vagrant 1.0.x plugin, note that 1.0.x plugins are incompatible with 1.1+.
There are errors in the configuration of this machine. Please fix
the following errors and try again:
Unison:
* translation missing: en.vagrant_sync.config.host_folder_required
* translation missing: en.vagrant_sync.config.guest_folder_required
Vagrant::Config.run do |config| [80/9750]
config.vm.box = "virool"
config.vm.box_url = "/Users/trybeee/Dropbox/Vagrant/package.box"
config.ssh.forward_agent = true
config.vm.network :hostonly, "33.33.33.10"
config.vm.share_folder("vagrant-root", "/vagrant", ".", :nfs => true, :nfs_version => 3)
config.sync.host_folder = "./" #relative to the folder your Vagrantfile is in
config.sync.guest_folder = "./" #relative to the vagrant home folder -> /home/vagrant
# config.sync.ignore = "Name {.idea,.DS_Store}"
Производительность shared-папок в Vagrant