devgeniem / gdev

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

Sometimes data container startup is slow and gdev fails to do initial sync #13

Open onnimonni opened 8 years ago

onnimonni commented 8 years ago

This happened me today:

onnimonni@omppukone:~/P/G/s/client> gdev up                                                                 
gdev_nginx_1 is up-to-date
gdev_signaler_1 is up-to-date
gdev_mail_1 is up-to-date
gdev_dnsmasq_1 is up-to-date
Starting wp_project_data_1
INFO: Starting to sync into port: 32768...
Fatal error: Lost connection with the server

But when I run gdev sync afterwise it worked just fine.

Gdev should poll on the container port and wait that unison is ready before starting the initial sync. Or try again after 1s if the initial sync fails.