eee
This commit is contained in:
@@ -66,7 +66,7 @@ class HotReload extends AbstractProcess
|
|||||||
$this->pipe = inotify_init();
|
$this->pipe = inotify_init();
|
||||||
|
|
||||||
foreach (config('reload.listen') as $key => $value) {
|
foreach (config('reload.listen') as $key => $value) {
|
||||||
$this->readDirectory($value . '/*');
|
$this->readDirectory($value);
|
||||||
}
|
}
|
||||||
while (!$this->isStop()) {
|
while (!$this->isStop()) {
|
||||||
$read = inotify_read($this->pipe);
|
$read = inotify_read($this->pipe);
|
||||||
@@ -136,7 +136,7 @@ class HotReload extends AbstractProcess
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (is_dir($data)) {
|
if (is_dir($data)) {
|
||||||
$this->readDirectory($data . DIRECTORY_SEPARATOR . '*');
|
$this->readDirectory($data);
|
||||||
} else {
|
} else {
|
||||||
$this->readFile($data);
|
$this->readFile($data);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user