diff --git a/deploy/supervisord.conf b/deploy/supervisord.conf index 7dd8855..87e8dea 100644 --- a/deploy/supervisord.conf +++ b/deploy/supervisord.conf @@ -6,3 +6,12 @@ command=/usr/local/sbin/php-fpm [program:nginx] command=/usr/sbin/nginx -g "daemon off;" + +[program:queue] +directory=/var/www +command=php artisan queue:work --daemon --sleep=3 --tries=1 --timeout=120 +autostart=true +autorestart=true +user=www-data +stderr_logfile=/var/log/laravel-queue.err.log +stdout_logfile=/var/log/laravel-queue.out.log