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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With