This commit is contained in:
as2252258@163.com
2021-08-28 19:35:38 +08:00
parent de45170f2c
commit 8d53c9e0f7
+2 -1
View File
@@ -68,7 +68,7 @@ class OnServerWorker extends \Server\Abstracts\Server
if (!empty($serialize)) { if (!empty($serialize)) {
Config::sets(unserialize($serialize)); Config::sets(unserialize($serialize));
} }
if (env('enableFileChange', 'off') == 'off') {
$annotation = Kiri::app()->getAnnotation(); $annotation = Kiri::app()->getAnnotation();
$annotation->read(APP_PATH . 'app', 'App', $annotation->read(APP_PATH . 'app', 'App',
$workerId < $server->setting['worker_num'] ? [] : [CONTROLLER_PATH] $workerId < $server->setting['worker_num'] ? [] : [CONTROLLER_PATH]
@@ -76,6 +76,7 @@ class OnServerWorker extends \Server\Abstracts\Server
$this->workerInitExecutor($server, $annotation, $workerId); $this->workerInitExecutor($server, $annotation, $workerId);
$this->interpretDirectory($annotation); $this->interpretDirectory($annotation);
} }
}
/** /**