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