Skip to content
This repository has been archived by the owner on Dec 8, 2019. It is now read-only.

Bi-directional sync not working? #16

Open
dfee opened this issue Aug 7, 2016 · 1 comment
Open

Bi-directional sync not working? #16

dfee opened this issue Aug 7, 2016 · 1 comment

Comments

@dfee
Copy link

dfee commented Aug 7, 2016

I'm able to bidirectionally sync by running unison . socket://<docker>:5000/ -ignore 'Path .git' -auto -batch

However, that doesn't stay alive (obviously). What does stay alive is fswatch -o . | xargs -n1 -I{} unison . socket://<docker>:5000/ -ignore 'Path .git' -auto -batch because fswatch stays alive.

So, if I create a file on my docker instance, how do I automatically sync it back to my Mac? Do I need to add a custom RUN command to a custom docker-unison Dockerfile to tell it to also fswatch -o . | xargs -n1 -I{} unison . socket://<docker>:5000/ -ignore 'Path .git' -auto -batch?

@u007
Copy link

u007 commented Feb 24, 2018

i think maybe -watch flag?

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants