devgeniem / gdev

Helper script for developing containerized web applications.
https://devgeniem.github.io/gdev/
MIT License
29 stars 16 forks source link

Add gdev sync command #7

Closed onnimonni closed 8 years ago

onnimonni commented 8 years ago

Current setup: Running gdev up starts data container and automatically syncs initial state. Then it starts other containers which can mount files from data container. Then it starts unison file watcher to sync files as they change to and from data container.

Preferred way: Stop automatic sync watcher in the end of gdev up and provide another command which can be used as file sync watcher for project.

gdev up should tell the user to run gdev sync if onnimonni/unison container is available in docker-compose.yml.

It should check if docker-compose is running and fail with sane error message if it isn't.