start supervisor
This commit is contained in:
@@ -1,12 +1,25 @@
|
||||
[supervisord]
|
||||
nodaemon=true
|
||||
logfile=/var/www/storage/logs/supervisord.log
|
||||
pidfile=/var/run/supervisord.pid
|
||||
|
||||
[program:laravel-worker]
|
||||
process_name=%(program_name)s_%(process_num)02d
|
||||
command=php /var/www/artisan queue:work --sleep=3 --tries=3
|
||||
[program:php-fpm]
|
||||
command=/usr/local/sbin/php-fpm
|
||||
autostart=true
|
||||
autorestart=true
|
||||
user=www-data
|
||||
numprocs=1
|
||||
redirect_stderr=true
|
||||
stdout_logfile=/var/www/storage/logs/worker.log
|
||||
stderr_logfile=/var/www/storage/logs/php-fpm.err.log
|
||||
stdout_logfile=/var/www/storage/logs/php-fpm.out.log
|
||||
|
||||
[program:inertia-ssr]
|
||||
command=php /var/www/artisan inertia:start-ssr
|
||||
autostart=true
|
||||
autorestart=true
|
||||
stderr_logfile=/var/www/storage/logs/inertia-ssr.err.log
|
||||
stdout_logfile=/var/www/storage/logs/inertia-ssr.out.log
|
||||
|
||||
[program:cron]
|
||||
command=cron -f
|
||||
autostart=true
|
||||
autorestart=true
|
||||
stderr_logfile=/var/www/storage/logs/cron.err.log
|
||||
stdout_logfile=/var/www/storage/logs/cron.out.log
|
||||
Reference in New Issue
Block a user