Files
sam-docs/sam/docker/api/supervisord.conf
김보곤 833a957d9e docs: [react] React 빌드/배포 정책 추가
- 서버 빌드 금지, 로컬 빌드 후 배포 정책 명시
- 프로젝트 경로에 react 추가
2026-02-21 15:50:02 +09:00

36 lines
1.0 KiB
Plaintext
Executable File

[supervisord]
nodaemon=true
[program:php-fpm]
command=/usr/local/sbin/php-fpm
[program:nginx]
command=nginx -g "daemon off;"
[program:queue-worker]
command=php /var/www/api/artisan queue:work database --queue=api,default --sleep=3 --tries=3 --timeout=1800 --max-jobs=100 --max-time=3600
process_name=%(program_name)s_%(process_num)02d
numprocs=1
directory=/var/www/api
autostart=true
autorestart=true
startsecs=5
startretries=3
stopwaitsecs=1830
stdout_logfile=/var/www/api/storage/logs/queue-worker.log
stdout_logfile_maxbytes=5MB
stderr_logfile=/var/www/api/storage/logs/queue-worker-error.log
stderr_logfile_maxbytes=5MB
[program:scheduler]
command=bash -c "while true; do php /var/www/api/artisan schedule:run --no-interaction; sleep 60; done"
process_name=%(program_name)s
numprocs=1
directory=/var/www/api
autostart=true
autorestart=true
startsecs=0
stdout_logfile=/var/www/api/storage/logs/scheduler.log
stdout_logfile_maxbytes=5MB
stderr_logfile=/var/www/api/storage/logs/scheduler-error.log
stderr_logfile_maxbytes=5MB