This commit is contained in:
2020-09-07 16:03:19 +08:00
parent c7abbae458
commit 4a11a0e813
2 changed files with 6 additions and 4 deletions
+3
View File
@@ -251,6 +251,9 @@ class Server extends Application
if (!($this->baseServer instanceof \Swoole\Server)) {
$class = $this->dispatch($config['type']);
$this->baseServer = new $class($config['host'], $config['port'], SWOOLE_PROCESS, $config['mode']);
if (!isset($settings['pid_file'])) {
$settings['pid_file'] = APP_PATH . 'storage/server.pid';
}
$this->baseServer->set($settings);
$this->bindAnnotation();
} else {