I've not had a chance to play with it yet, but the most recent releases of 
guard and listen have added support for forwarding file change events over 
a network connection - specifically aimed at eg Vagrant setups.

I don't think it will work if you genuinely need native inotify events on 
the guest, but if you're running anything that can be triggered by guard 
that should now be possible. You just need to run listen on your host and 
configure the path and IP/port mappings between them.

I started writing a bidirectional sync plugin (with guard on both host and 
guest) a while ago, but found that there were issues getting it to be 
totally reliable because of course each sync then triggered a change 
notification at the other end - filtering these out but still picking up 
genuine changes straight after was tricky particularly when dealing with 
builders and the like that don't care too much about atomic file updates.

Andrew

On Thursday, February 27, 2014 12:56:51 PM UTC, Renaud Guerin wrote:
>
> Hi,
>
> tl;dr : I haven't found a solution that ticks all of the boxes in the 
> subject, do you know one ?
>
> My use case should be fairly common : I'd like to share a source tree 
> directory (4-5k files) on the host (MacOS) so devs can edit there, but also 
> have Compass inside the (Ubuntu) guest watch for any changes and recompile 
> assets (i.e. write to this directory too)
>
> Where it might be less common is that ideally, the devs would like at 
> least some of the assets produced by Compass inside the guest (pngcrushed 
> images) to be available on the host too, for easy committing back into git 
> in their optimized form.
>
> I've tried Virtualbox + NFS shared folders : they do the job functionally, 
> but neither supports inotify.
> In polling mode, Compass uses 70% CPU on a recent Macbook : not really 
> practical.
>
> The rsync-auto mode in Vagrant 1.5 is looking good, but it's not going to 
> be bidirectional.
>
> I suspect we'll have to revisit the dev workflow and compromise somewhere, 
> but if you know of a solution that does all of that, that would be 
> appreciated.
>
> Thanks !
>

-- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to