EugenMayer / docker-sync

Run your application at full speed while syncing your code for development, finally empowering you to utilize docker for development under OSX/Windows/*Linux
GNU General Public License v3.0
3.53k stars 289 forks source link

fswatch problems (rsync not updating) #174

Closed sathomas closed 7 years ago

sathomas commented 7 years ago

macOS Sierra Version 10.12.1 Docker for Mac Version 1.12.3 (13776) fswatch 1.9.3 (stock rsync in macOS)

Clean Install

docker rm $(docker ps -a -q)
docker rmi $(docker images -q)

Test using docker-sync-boilerplate

cd docker-sync-boilerplate/rsync
docker-sync-stack start

App runs and correctly shows index.html contents

Every 3s: cat /var/www/index.html                           2016-11-16 14:21:22
your-app     | 
your-app     | Some random HTML file hereasdasd
your-app     | NEW

In separate terminal window

cd docker-sync-boilerplate/rsync/app
sed -i.bak s/NEW/NEWER/ index.html

The index.html file is changed, but the output remains the same on the original window.

Manually forcing an rsync in the second terminal window

docker-sync sync

Does update the output in the original window.

EugenMayer commented 7 years ago

Do you have extensive excludes? please see https://github.com/EugenMayer/docker-sync/issues/68

sathomas commented 7 years ago

Think I found the problem. I installed docker-sync locally instead of for all users. Running my own app in verbose mode:

Sync exceed-app-sync  xargs: docker-sync: No such file or directory
sathomas commented 7 years ago

Confirmed the problem was with local path. Going to close this issue.

EugenMayer commented 7 years ago

Great you sorted this one out!