PHP code example of laratusk / supervise

1. Go to this page and download the library: Download laratusk/supervise library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

laratusk / supervise example snippets


'workers' => [
    'horizon' => [
        'command' => 'php artisan horizon',
    ],
    'default-queue' => [
        'command'  => 'php artisan queue:work redis --queue=default --tries=3',
        'numprocs' => 3,
    ],
    'reverb' => [
        'command' => 'php artisan reverb:start',
        'log'     => true,
    ],
],

'groups' => [
    'app-workers' => ['horizon', 'default-queue'],
],
bash
php artisan supervise:install
bash
   php artisan supervise:compile
   
bash
   php artisan supervise:link
   
bash
   php artisan supervise:compile --reload
   
bash
php artisan supervise:compile --reload
bash
php artisan supervise:compile --reload