Speed up sync latency between host and guest on Vagrant (NFS sync folders)

前端 未结 1 367
没有蜡笔的小新
没有蜡笔的小新 2020-12-30 11:38

I\'m using vagrant to run a wordpress dev environment on my local machine, have setup nfs as the default file-sharing mechanism (I\'m on a mac). Overall performance is reall

相关标签:
1条回答
  • 2020-12-30 12:17

    Found the answer here https://github.com/mitchellh/vagrant/issues/4204#issuecomment-49856008

    Just add mount options to the nfs share in Vagrantfile, this will make nfs sharing sync almost instantly on every save (<500ms).

    config.vm.synced_folder "www/", "/srv/www/", :type => "nfs", mount_options:['nolock,vers=3,udp,noatime,actimeo=1']
    
    0 讨论(0)
提交回复
热议问题