Skip to content

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:supervisor

modularous:make:horizon:supervisor ​

Interactively generates a Supervisor .conf file for Laravel Horizon. The command:

  1. Detects the operating system and checks if supervisord is installed. If not, it prints the appropriate install command for the detected platform (Homebrew on macOS, apt/yum on Linux).
  2. Finds a writable Supervisor configuration directory (/etc/supervisor/conf.d, /etc/supervisord.d, /opt/homebrew/etc/supervisor.d, etc.).
  3. Prompts for the configuration details listed below.
  4. Optionally prints the generated config content for review.
  5. Writes the .conf file to the detected Supervisor directory.

Interactive prompts:

PromptDefault
Supervisor config nameb2press-app
PHP binary pathphp
Application pathCurrent project root
Artisan command to runartisan horizon
System user to run asroot
Log file namehorizon

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:supervisor
  • modularous: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