Skip to content

Instantly share code, notes, and snippets.

@kaystrobach
Created September 12, 2014 08:58
Show Gist options
  • Save kaystrobach/fb2896b546a9c6d27c62 to your computer and use it in GitHub Desktop.
Save kaystrobach/fb2896b546a9c6d27c62 to your computer and use it in GitHub Desktop.
Vagrantfile snippet NFS for *unix and SMB for windows!
if (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil
print "Welcome to the MS Windows hell\n\n"
print "Please confirm the UAC messages, but still the network will be slow\n\n"
config.vm.synced_folder ".", "/serverdata", owner: "www-data", group:"www-data"
else
print "You are not running Windows ... thank god!\n\n"
print "You may be asked for your sudo password to use NFS shares\n"
print "More Information: https://docs.vagrantup.com/v2/synced-folders/nfs.html\n\n"
config.vm.synced_folder ".", "/serverdata", type: "nfs" #, owner: "www-data", group:"www-data"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment