This repository has been archived on 2025-06-09. You can view files and clone it, but cannot push or open issues or pull requests.
LaravelDockerPublisher/docker/supervisord.conf
allen.yan 9a89e4dffc Laravel 第一版問題修正
Laraval 第一版拆串queue
20250602
2025-06-02 11:55:42 +08:00

23 lines
666 B
Plaintext

[supervisord]
nodaemon=true
logfile=/var/www/logs/supervisord.log ; 設定 log 儲存位置
pidfile=/var/www/logs/supervisord.pid ; 設定 pid 儲存位置
[program:queue-worker]
directory=/var/www/html
command=php artisan queue:work --daemon --timeout=3600 --tries=1 --queue=default
autostart=true
autorestart=true
priority=1
stdout_logfile=/var/www/logs/queue.log
stderr_logfile=/var/www/logs/queue_error.log
[program:scheduler]
directory=/var/www/html
command=sh -c "while true; do php artisan schedule:run; sleep 60; done"
autostart=true
autorestart=true
priority=2
stdout_logfile=/var/www/logs/schedule.log
stderr_logfile=/var/www/logs/schedule_error.log