@@ -67,9 +67,9 @@ protected function startSwooleServer()
67
67
return $ this ->call ('octane:swoole ' , [
68
68
'--host ' => $ this ->getHost (),
69
69
'--port ' => $ this ->getPort (),
70
- '--workers ' => $ this ->option ('workers ' ),
71
- '--task-workers ' => $ this ->option ('task-workers ' ),
72
- '--max-requests ' => $ this ->option ('max-requests ' ),
70
+ '--workers ' => $ this ->option ('workers ' ) ?: config ( ' octane.workers ' , ' auto ' ) ,
71
+ '--task-workers ' => $ this ->option ('task-workers ' ) ?: config ( ' octane.task_workers ' , ' auto ' ) ,
72
+ '--max-requests ' => $ this ->option ('max-requests ' ) ?: config ( ' octane.max_requests ' , 500 ),
73
73
'--watch ' => $ this ->option ('watch ' ),
74
74
'--poll ' => $ this ->option ('poll ' ),
75
75
]);
@@ -87,8 +87,8 @@ protected function startRoadRunnerServer()
87
87
'--port ' => $ this ->getPort (),
88
88
'--rpc-host ' => $ this ->option ('rpc-host ' ),
89
89
'--rpc-port ' => $ this ->option ('rpc-port ' ),
90
- '--workers ' => $ this ->option ('workers ' ),
91
- '--max-requests ' => $ this ->option ('max-requests ' ),
90
+ '--workers ' => $ this ->option ('workers ' ) ?: config ( ' octane.workers ' , ' auto ' ) ,
91
+ '--max-requests ' => $ this ->option ('max-requests ' ) ?: config ( ' octane.max_requests ' , 500 ) ,
92
92
'--rr-config ' => $ this ->option ('rr-config ' ),
93
93
'--watch ' => $ this ->option ('watch ' ),
94
94
'--poll ' => $ this ->option ('poll ' ),
@@ -107,8 +107,8 @@ protected function startFrankenPhpServer()
107
107
'--host ' => $ this ->getHost (),
108
108
'--port ' => $ this ->getPort (),
109
109
'--admin-port ' => $ this ->option ('admin-port ' ),
110
- '--workers ' => $ this ->option ('workers ' ),
111
- '--max-requests ' => $ this ->option ('max-requests ' ),
110
+ '--workers ' => $ this ->option ('workers ' ) ?: config ( ' octane.workers ' , ' auto ' ) ,
111
+ '--max-requests ' => $ this ->option ('max-requests ' ) ?: config ( ' octane.max_requests ' , 500 ) ,
112
112
'--caddyfile ' => $ this ->option ('caddyfile ' ),
113
113
'--https ' => $ this ->option ('https ' ),
114
114
'--http-redirect ' => $ this ->option ('http-redirect ' ),
0 commit comments