winnfsd / vagrant-winnfsd

Manage and adds support for NFS for Vagrant on Windows.
Other
570 stars 61 forks source link

Reeeeeally slow on Laravel Homestead #26

Open lazychaser opened 10 years ago

lazychaser commented 10 years ago

I've finally set up nfs on windows, I can list files in folders, but everything started to go even slower and I get gateway timeout.

I'm running Homestead on Vagrant 1.6.3 with Virtualbox.

    # Register All Of The Configured Shared 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

Also, when I try to reload vagrant, it can't be done gracefully.

I turned ON logging, and I saw that vendor/composer/ClassLoader.php is loaded multiple times and each READ takes about 2 seconds.

Also, I had to modify source code of the plugin to set nfs_host_ip manually, because I don't know how to do this from the configuration, and by default it used the IP of the VM.

websanova commented 9 years ago

Just use sFTP: http://www.websanova.com/blog/laravel/laravel-homestead-with-sftp-and-sublime-text.html