start supervisor

This commit is contained in:
F4ilji
2025-04-27 19:35:41 +05:00
parent 453fb4cccc
commit ab0eb1d3ab
3 changed files with 63 additions and 52 deletions
+20 -7
View File
@@ -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