Make Horizon Supervisor ​
Create a Horizon Supervisor configuration file.
Command Information ​
- Signature:
modularous:make:horizon:supervisor - Alias:
modularous:create:horizon:supervisor - Category: Generators
Examples ​
Run the interactive setup ​
bash
php artisan modularous:make:horizon:supervisormodularous:make:horizon:supervisor ​
Interactively generates a Supervisor .conf file for Laravel Horizon. The command:
- Detects the operating system and checks if
supervisordis installed. If not, it prints the appropriate install command for the detected platform (Homebrew on macOS, apt/yum on Linux). - Finds a writable Supervisor configuration directory (
/etc/supervisor/conf.d,/etc/supervisord.d,/opt/homebrew/etc/supervisor.d, etc.). - Prompts for the configuration details listed below.
- Optionally prints the generated config content for review.
- Writes the
.conffile to the detected Supervisor directory.
Interactive prompts:
| Prompt | Default |
|---|---|
| Supervisor config name | b2press-app |
| PHP binary path | php |
| Application path | Current project root |
| Artisan command to run | artisan horizon |
| System user to run as | root |
| Log file name | horizon |
After the file is written, the command prints the supervisorctl reread, update, and start commands needed to activate the new configuration.
Note: This command is not supported on Windows.
Usage ​
modularous:make:horizon:supervisormodularous:create:horizon:supervisor
Options ​
--help|-h ​
Display help for the given command. When no command is given display help for the list command
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
--quiet|-q ​
Do not output any message
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
--verbose|-v|-vv|-vvv ​
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
--version|-V ​
Display this application version
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
--ansi|--no-ansi ​
Force (or disable --no-ansi) ANSI output
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: yes
- Default:
NULL
--no-interaction|-n ​
Do not ask any interactive question
- Accept value: no
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
false
--env ​
The environment the command should run under
- Accept value: yes
- Is value required: no
- Is multiple: no
- Is negatable: no
- Default:
NULL