mirror of
https://github.com/jkaninda/laravel-php-fpm.git
synced 2026-11-13 16:47:15 +00:00
chore: redirect php-fpm process to supervisor's log, refactoring of code
This commit is contained in:
1 parent
9fa8b63e37
commit
2f274a701b
10 files changed
+29
-31
No files matched your search
@@ -1,16 +1,20 @@
|
||||
[supervisord]
|
||||
nodaemon=true
|
||||
#user=root
|
||||
user=%(ENV_USER_NAME)s
|
||||
logfile=/var/log/supervisor/supervisord.log
|
||||
logfile_maxbytes = 50MB
|
||||
pidfile=/tmp/supervisord.pid
|
||||
directory = /tmp
|
||||
|
||||
[program:php-fpm]
|
||||
command=/usr/local/sbin/php-fpm
|
||||
numprocs=1
|
||||
autostart=true
|
||||
autorestart=true
|
||||
stderr_logfile=/var/log/php-fpm_consumer.err.log
|
||||
stdout_logfile=/var/log/php-fpm_consumer.out.log
|
||||
redirect_stderr=true
|
||||
stdout_logfile=/dev/stdout
|
||||
stderr_logfile=/dev/stdout
|
||||
stdout_logfile_maxbytes=0
|
||||
user=www-data
|
||||
priority=1
|
||||
|
||||
|
||||
Reference in new issue
Block a user