Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vagrant rsync-auto doesn't appear to be updating files on VM, on Mac

I've been using Vagrant on Windows for a while without issues with rsync-auto. Tried setting up my box on a MacBook Air, there are no errors on the command, but the folder does not seem to get updated with the new files. What's going on?

This is the setup I have in my Vagrantfile:

config.vm.synced_folder "/Users/<username>/<path>/<to>/<dir>", 
  "/var/www/html/<dir>", type: "rsync", rsync__exclude: ".git/",
  owner: "root", group: "root"

When I SSH into the VM, I see the files' modified date never changes.

Output of vagrant rsync-auto

$ vagrant rsync-auto
==> default: Doing an initial rsync...
==> default: Rsyncing folder: /Users/<username>/<path>/<to>/<dir>/ => /var/www/html/<dir>
==> default:   - Exclude: [".vagrant/", ".git/"]
==> default: Watching: /Users/<username>/<path>/<to>/<dir>
D, [2014-09-19T15:09:36.087365 #38613] DEBUG -- : Adapter: considering TCP ...
D, [2014-09-19T15:09:36.087457 #38613] DEBUG -- : Adapter: considering polling ...
D, [2014-09-19T15:09:36.087532 #38613] DEBUG -- : Adapter: considering optimized backend...

Thanks for any help you can offer.

like image 431
MaxGhost Avatar asked Sep 19 '14 19:09

MaxGhost


1 Answers

Neeeevermind. I figured it out.

I had the /var/www/html dir as only writable by root, so no changes were able to be made. Changed permissions to 777 (this is a VM so I don't really care) and it finally works. Dang permissions.

like image 93
MaxGhost Avatar answered Oct 11 '22 18:10

MaxGhost