vagrant homestead 上laravel-admin响应速度慢

解决vagrant homestead 上laravel-admin响应速度慢的方法,安装一个vagrant 插件就可以解决这个问题。
$ vagrant plugin install vagrant-winnfsd

然后修改 Homestead/scripts/homestead.rb 的代码, 循环部分替换成如下:

        # Register All Of The Configured Shared Folders
        if settings.include? 'folders'
            settings["folders"].each do |folder|
              config.vm.synced_folder folder["map"], folder["to"], 
              id: folder["map"],
              :nfs => true,
              :mount_options => ['nolock,vers=3,udp,noatime']
            end
        end

        # Install All The Configured Nginx Sites

vagrant reload 重启vagrant 之后, 响应速度已经将至 200 ms

阅读 195

Comments