28 lines
734 B
Plaintext
28 lines
734 B
Plaintext
[supervisord]
|
|
nodaemon=true
|
|
user=root
|
|
logfile=/var/log/supervisor/supervisord.log
|
|
pidfile=/var/run/supervisord.pid
|
|
|
|
[program:php]
|
|
command=%(ENV_SUPERVISOR_PHP_COMMAND)s
|
|
user=%(ENV_SUPERVISOR_PHP_USER)s
|
|
environment=LARAVEL_SAIL="1"
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
|
|
[program:npm]
|
|
command=/bin/sh -c "if [ \"${APP_ENV}\" = \"local\" ] || [ \"${APP_ENV}\" = \"testing\" ]; then exec /usr/bin/npm run dev; else sleep infinity; fi"
|
|
user=%(ENV_SUPERVISOR_PHP_USER)s
|
|
environment=LARAVEL_SAIL="1"
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
autostart=true
|
|
autorestart=true
|
|
stopasgroup=true
|
|
killasgroup=true
|