Skip to content

Instantly share code, notes, and snippets.

@eckelon
Created March 26, 2018 15:15
Show Gist options
  • Save eckelon/2f96c324dd4f71d526071e92c09b0739 to your computer and use it in GitHub Desktop.
Save eckelon/2f96c324dd4f71d526071e92c09b0739 to your computer and use it in GitHub Desktop.
My shared folders configuration for Vagrant using Rsync instead of nfs to have a much better performance on Mac OS
config.vm.synced_folder '.', '/var/www',
type: 'rsync',
rsync__exclude: [
'Vagrantfile', # Vagrant control file
'.vagrant/', # Vagrant work area
'.git/', # Git repository
'.gitignore', # Git support file
'.gitattributes', # Git support file
'foo/media/images', # other folders you don't want to be wiped with the host contents
'vendor/' # other folders you don't want to be wiped with the host contents
],
rsync__auto: true,
owner: "www-data",
group: "www-data",
mount_options: ["dmode=775,fmode=664"]
# Use this vagrant plugin in order to synchronize your changes to the vm: https://github.com/wk8/vagrant-instant-rsync-auto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment