改名
This commit is contained in:
@@ -47,8 +47,9 @@ class Shutdown extends Component
|
|||||||
public function shutdown(): void
|
public function shutdown(): void
|
||||||
{
|
{
|
||||||
clearstatcache(storage());
|
clearstatcache(storage());
|
||||||
exec('ls -alh /.dockerenv', $output, $cod);
|
$output = shell_exec('ls -alh /.dockerenv');
|
||||||
if ($cod === 0 && !empty($output)) {
|
var_dump($output);
|
||||||
|
if (!empty($output)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -43,8 +43,6 @@ class ServerInotify extends Process
|
|||||||
{
|
{
|
||||||
set_error_handler([$this, 'onErrorHandler']);
|
set_error_handler([$this, 'onErrorHandler']);
|
||||||
$this->dirs = Config::get('inotify', [APP_PATH]);
|
$this->dirs = Config::get('inotify', [APP_PATH]);
|
||||||
|
|
||||||
var_dump(extension_loaded('inotify'));
|
|
||||||
if (extension_loaded('inotify')) {
|
if (extension_loaded('inotify')) {
|
||||||
$this->inotify = inotify_init();
|
$this->inotify = inotify_init();
|
||||||
$this->events = IN_MODIFY | IN_DELETE | IN_CREATE | IN_MOVE;
|
$this->events = IN_MODIFY | IN_DELETE | IN_CREATE | IN_MOVE;
|
||||||
|
|||||||
Reference in New Issue
Block a user