eee
This commit is contained in:
@@ -75,12 +75,15 @@ class HotReload extends AbstractProcess
|
||||
}
|
||||
while (!$this->isStop()) {
|
||||
$read = inotify_read($this->pipe);
|
||||
var_dump($read);
|
||||
|
||||
foreach ($read as $item) {
|
||||
$this->reWatch($this->watches[$item['wd']]);
|
||||
if (count($read) > 0) {
|
||||
$this->reload();
|
||||
|
||||
foreach (config('reload.listen') as $value) {
|
||||
$this->reWatch($value);
|
||||
}
|
||||
}
|
||||
|
||||
$this->reload();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user