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