concept7 / laravel-supervisord-monitor
Installs: 3 364
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 4
Forks: 0
Open Issues: 0
Requires
- php: ^8.1
- guzzlehttp/guzzle: ^7.5
- illuminate/contracts: ^9.0|^10.0
- illuminate/support: ^9.0|^10.0
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.9
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^8.0
- pestphp/pest: ^2.0
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- spatie/laravel-ray: ^1.26
README
Installation
You can install the package via composer:
add the following to repositories in the composer.json:
{
"type": "git",
"url": "https://github.com/concept7/laravel-supervisord-monitor.git"
}
composer require concept7/laravel-supervisord-monitor
You can publish the config file with:
php artisan vendor:publish --tag="supervisord-monitor-config"
This is the contents of the published config file:
return [ 'protocol' => 'https', 'host' => env('SUPERVISORD_MONITOR_HOST', ''), 'path' => env('SUPERVISORD_MONITOR_PATH', ''), 'basic_auth' => [ 'username' => env('SUPERVISORD_MONITOR_BASIC_AUTH_USERNAME', null), 'password' => env('SUPERVISORD_MONITOR_BASIC_AUTH_PASSWORD', null), ], 'daemon_names' => env('SUPERVISORD_MONITOR_DAEMON_NAMES', ''), ];
Usage
Add the following lines to the .env.
When you have the url: https://supervisor-monitor.xyz/supervisor
SUPERVISORD_MONITOR_HOST="supervisor-monitor.xyz"
SUPERVISORD_MONITOR_PATH="supervisor"
SUPERVISORD_MONITOR_BASIC_AUTH_USERNAME="<auth username>"
SUPERVISORD_MONITOR_BASIC_AUTH_PASSWORD="<auth password>"
SUPERVISORD_MONITOR_DAEMON_NAMES="<daemon name as listed in the supervisor monitor web page>"
Run restart with following command
php artisan supervisord-monitor-cli:restart
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.