3xw5ta
Last Updated: February 25, 2016
·
528
· markus-perl
10620301 745710515470370 5763874756421604255 o

Vagrant, use nfs if available

If you're developing a project both on windows and Linux / Mac you can enable nfs only if the platform supports the protocol:

if RUBY_PLATFORM.downcase.include?("darwin") or RUBY_PLATFORM.downcase.include?("linux")
    config.vm.synced_folder ".", "/vagrant", :nfs => true
    else
        config.vm.synced_folder ".", "/vagrant"
end 
Say Thanks
Respond
Filed Under