Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gfazioli/laravel-artisan-supervisor-command
Laravel Artisan Supervisor Command
https://github.com/gfazioli/laravel-artisan-supervisor-command
Last synced: 1 day ago
JSON representation
Laravel Artisan Supervisor Command
- Host: GitHub
- URL: https://github.com/gfazioli/laravel-artisan-supervisor-command
- Owner: gfazioli
- License: mit
- Created: 2015-06-20T10:25:03.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-08-30T07:48:04.000Z (about 8 years ago)
- Last Synced: 2024-04-14T00:51:40.902Z (6 months ago)
- Language: PHP
- Homepage: https://gfazioli.github.io/Laravel-Artisan-Supervisor-Command/
- Size: 13.7 KB
- Stars: 9
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Laravel-Artisan-Supervisor-Command
## Installation
1. Copy or create `SupervisorCommand.php` file in your `app/Console/Commands` folder
2. Edit `Kernel.php` in `app/Console/Commands` folder
3. Add the command in `$commands` array property```php
protected $commands = [
\App\Console\Commands\SupervisorCommand::class,
];
```4. Run from shell `php artisan shell:supervisor`
```
Usage:
shell:supervisor [options]
Options:
--list List supervisor processes
--start[=START] Start supervisor process by process name
--stop[=STOP] Stop a supervisor process by PID or process name
--start-all Stop all supervisor processes
--stop-all Stop all supervisor processes
--up Start supervisor service
--down Stop supervisor service
```## Broadcast and supervisor links
* http://laravel.com/docs/5.1/events#broadcasting-events
* http://blog.nedex.io/laravel-5-1-broadcasting-events-using-redis-driver-socket-io/
* http://posts.danharper.me/laravel-queue-supervisor/