mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-18 22:49:52 +02:00
fix output and config reload
This commit is contained in:
@@ -64,7 +64,7 @@ func (p *Provider) grWatchFileChanges() {
|
||||
case event.Has(fsnotify.Write):
|
||||
p.Logf("Watcher", "file change detected")
|
||||
p.StopAllRoutes()
|
||||
p.BuildStartRoutes()
|
||||
p.StartAllRoutes()
|
||||
case event.Has(fsnotify.Remove), event.Has(fsnotify.Rename):
|
||||
p.Logf("Watcher", "file renamed / deleted")
|
||||
p.StopAllRoutes()
|
||||
|
||||
Reference in New Issue
Block a user