Created
September 12, 2014 08:58
-
-
Save kaystrobach/fb2896b546a9c6d27c62 to your computer and use it in GitHub Desktop.
Vagrantfile snippet NFS for *unix and SMB for windows!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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