Created
March 23, 2014 00:16
-
-
Save Zmetser/9716433 to your computer and use it in GitHub Desktop.
Synced folder setting in Vagrantfile with proper rights
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
data['vm']['synced_folder'].each do |i, folder| | |
if folder['source'] != '' && folder['target'] != '' && folder['id'] != '' | |
nfs = (folder['nfs'] == "true") ? "nfs" : nil | |
config.vm.synced_folder "#{folder['source']}", "#{folder['target']}", id: "#{folder['id']}", type: nfs, | |
owner: "vagrant", | |
group: "www-data", | |
mount_options: ["dmode=775", "fmode=664"] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment