apogiatzis / docker-compose-livereloader

A docker compose pattern to enable automatic container reloading.
77 stars 12 forks source link

Bug fix happening when watching multiple directories #10

Closed antonrv closed 3 years ago

antonrv commented 3 years ago

Fixed two things:

  1. When watching multiple directories, the directories were not being appended to a list, but they were overwriting the same variable.
  2. observer.start() must be called once, not as many times as reload dirs, otherwise an error due to duplicated thread spawn will appear.
apogiatzis commented 3 years ago

Thanks for your contribution!! Good catch! LGTM! Merged!