|
@@ -40,6 +40,8 @@ return [
|
|
|
],
|
|
|
],
|
|
|
'settings' => [
|
|
|
+ 'document_root' => BASE_PATH . '/public',
|
|
|
+ 'enable_static_handler' => true,
|
|
|
Constant::OPTION_ENABLE_COROUTINE => true,
|
|
|
Constant::OPTION_WORKER_NUM => swoole_cpu_num(),
|
|
|
Constant::OPTION_PID_FILE => BASE_PATH . '/runtime/hyperf.pid',
|
|
@@ -49,8 +51,6 @@ return [
|
|
|
Constant::OPTION_MAX_REQUEST => 100000,
|
|
|
Constant::OPTION_SOCKET_BUFFER_SIZE => 2 * 1024 * 1024,
|
|
|
Constant::OPTION_BUFFER_OUTPUT_SIZE => 2 * 1024 * 1024,
|
|
|
- 'document_root' => BASE_PATH . '/public',
|
|
|
- 'enable_static_handler' => true,
|
|
|
],
|
|
|
'callbacks' => [
|
|
|
Event::ON_WORKER_START => [Hyperf\Framework\Bootstrap\WorkerStartCallback::class, 'onWorkerStart'],
|