Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laravel Horizon and supervisor #516

Open
vlauciani opened this issue May 23, 2024 · 0 comments
Open

Laravel Horizon and supervisor #516

vlauciani opened this issue May 23, 2024 · 0 comments

Comments

@vlauciani
Copy link

Hi all,

I'm using Laravel Horizon and to run it, I created a simple laravel-horizon.conf into the folder:

/opt/docker/etc/supervisor.d

with the following content:

[program:laravel-horizon]
process_name=%(program_name)s
user=application
command=php /app/artisan horizon
autostart=true
autorestart=true
redirect_stderr=true
stdout_logfile=/app/storage/logs/laravel-horizon-stdout.log
stdout_logfile_maxbytes=0
stderr_logfile=/app/storage/logs/laravel-horizon-stderr.log
stderr_logfile_maxbytes=0
stopwaitsecs=90

Regarding this, I have two questions:

  • Is this the best way to run Laravel Horizon?
  • Is the user=application directive necessary?

Thank you in advance for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant