src/Jobs/Supervisor/MakeQueueSupervisorConfig.php 1 location
|
@@ 9-17 (lines=9) @@
|
| 6 |
|
{ |
| 7 |
|
protected $processName = 'queue'; |
| 8 |
|
|
| 9 |
|
public function __construct(array $params = [], string $fileName = '', string $path = '/etc/supervisor/conf.d/') |
| 10 |
|
{ |
| 11 |
|
$params = $params ?: [ |
| 12 |
|
'command' => 'php artisan queue:work --sleep=3 --tries=3', |
| 13 |
|
'numprocs' => 3, |
| 14 |
|
]; |
| 15 |
|
|
| 16 |
|
parent::__construct($params, $fileName, $path); |
| 17 |
|
} |
| 18 |
|
} |
| 19 |
|
|
src/Jobs/Supervisor/MakeSocketSupervisorConfig.php 1 location
|
@@ 9-16 (lines=8) @@
|
| 6 |
|
{ |
| 7 |
|
protected $processName = 'socket'; |
| 8 |
|
|
| 9 |
|
public function __construct(array $params = [], string $fileName = '', string $path = '/etc/supervisor/conf.d/') |
| 10 |
|
{ |
| 11 |
|
$params = $params ?: [ |
| 12 |
|
'command' => 'node ./node_modules/.bin/laravel-echo-server start', |
| 13 |
|
]; |
| 14 |
|
|
| 15 |
|
parent::__construct($params, $fileName, $path); |
| 16 |
|
} |
| 17 |
|
} |
| 18 |
|
|