mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-03 18:40:52 +08:00
feat: workerman 增加热重载
This commit is contained in:
@@ -188,7 +188,10 @@ class ConfigController extends Controller
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// 如果是workerman环境,则触发reload
|
||||
if(isset(get_defined_constants(true)['user']['Workerman'])){
|
||||
posix_kill(posix_getppid(), SIGUSR1);
|
||||
}
|
||||
Cache::forget('admin_settings');
|
||||
// \Artisan::call('horizon:terminate'); //重启队列使配置生效
|
||||
return $this->success(true);
|
||||
|
||||
Reference in New Issue
Block a user