pd / supervisor
Supervisor configuration with console commands for nette applications
Installs: 155 225
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 18
Forks: 3
Open Issues: 1
Requires
- php: ^7.4 | ^8.0
- nette/application: ^3.0.0
- nette/di: ^3.0.0
- supervisorphp/configuration: ^0.3
- symfony/console: ^3.0|^4.0|^5.0|^6.0
Requires (Dev)
- nette/tester: ^2.4
- phpstan/phpstan: ^1.4
README
Supervisor configuration with console commands for nette applications.
Installation
The best way to install PeckaDesign/Supervisor is using Composer:
$ composer require pd/supervisor
Configuration
Enable extension in your application configuration:
extensions: supervisor: Pd\Supervisor\DI\SupervisorExtension
Now you can configure your supervisor.
supervisor: prefix: my-project #prefixes every named section defaults: program: autorestart: on configuration: group: group-name: programs: - program-name program: program-name: command: moo
Commands
RenderCommand
Renders supervisor configuration
$ php www/index.php supervisor:render
WriteCommand
Writes supervisor configuration to file
$ php www/index.php supervisor:write supervisor.conf
Optionally you can merge configuration sections to existing configuration file
$ php www/index.php supervisor:write supervisor.conf -m