Supervisor configuration with console commands for nette applications.
The best way to install PeckaDesign/Supervisor is using Composer:
$ composer require pd/supervisorEnable extension in your application configuration:
extensions:
supervisor: Pd\Supervisor\DI\SupervisorExtensionNow 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: mooRenders supervisor configuration
$ php www/index.php supervisor:renderWrites supervisor configuration to file
$ php www/index.php supervisor:write supervisor.confOptionally you can merge configuration sections to existing configuration file
$ php www/index.php supervisor:write supervisor.conf -m