Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit 60f2b2c

Browse files
authored
Merge pull request #24 from mouyong/master
简化使用指令
2 parents 8b15af1 + ce41135 commit 60f2b2c

File tree

6 files changed

+17
-17
lines changed

6 files changed

+17
-17
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,15 @@ mode options : ( start / daemon / stop )
7575
## Useage
7676

7777
```shell
78-
php artisan workerman:gateway start
79-
php artisan workerman:gateway daemon
80-
php artisan workerman:gateway reload
81-
php artisan workerman:gateway stop
82-
php artisan workerman:gateway status
83-
84-
php artisan workerman:gateway-make-sockets Sockets
85-
php artisan workerman:gateway-make-events Events
86-
php artisan workerman:gateway-make-custom-process CustomProcess
78+
php artisan worker start
79+
php artisan worker daemon
80+
php artisan worker reload
81+
php artisan worker stop
82+
php artisan worker status -d
83+
84+
php artisan make:sockets Sockets
85+
php artisan make:events Events
86+
php artisan make:process CustomProcess
8787
```
8888

8989
### webman plugin useage

config/workerman.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
'transport' => 'tcp',
1111
'context' => [],
1212
'name' => env('APP_NAME', 'laravel-octane-workerman') . ' HttpWorker',
13-
'count' => cpu_count() * 2,
13+
'count' => cpu_count() * 3,
1414
'user' => '',
1515
'group' => '',
1616
'reusePort' => true,

src/Commands/StartWorkermanGatewayCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ class StartWorkermanGatewayCommand extends Command implements SignalableCommandI
1818
*
1919
* @var string
2020
*/
21-
public $signature = 'workerman:gateway
21+
public $signature = 'worker
2222
{mode=start : Workerman server mode [ start | daemon | reload | stop ]}
2323
{--host : The IP address the server should bind to}
2424
{--port : The port the server should be available on}
25-
{--max-requests=10000 : The number of requests to process before reloading the server}
25+
{--max-requests=250 : The number of requests to process before reloading the server}
2626
{--watch : Automatically reload the server when the application is modified}
2727
{--d|debug : Automatically reload the server when the application is modified}';
2828

src/Commands/WorkermanGatewayMakeCustomProcessCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ class WorkermanGatewayMakeCustomProcessCommand extends GeneratorCommand
1111
*
1212
* @var string
1313
*/
14-
protected $signature = 'workerman:gateway-make-custom-process {name : The name of the Custom Process}
15-
{--path= : The location where the migration file should be created}';
14+
protected $signature = 'make:process {name : The name of the Custom Process}
15+
{--path= : The location where the migration file should be created}';
1616

1717
/**
1818
* The console command description.

src/Commands/WorkermanGatewayMakeEventsCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class WorkermanGatewayMakeEventsCommand extends GeneratorCommand
1111
*
1212
* @var string
1313
*/
14-
protected $signature = 'workerman:gateway-make-events {name : The name of the Events}
14+
protected $signature = 'make:events {name : The name of the Events}
1515
{--path= : The location where the migration file should be created}';
1616

1717
/**

src/Commands/WorkermanGatewayMakeSocketsCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ class WorkermanGatewayMakeSocketsCommand extends GeneratorCommand
1111
*
1212
* @var string
1313
*/
14-
protected $signature = 'workerman:gateway-make-sockets {name : The name of the Sockets}
15-
{--path= : The location where the migration file should be created}';
14+
protected $signature = 'make:sockets {name : The name of the Sockets}
15+
{--path= : The location where the migration file should be created}';
1616

1717
/**
1818
* The console command description.

0 commit comments

Comments
 (0)