From fe71ae95158c386a46a27180c89f90d14d0481a1 Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Thu, 13 Apr 2017 18:09:13 +0200 Subject: [PATCH] Make supervisor log its children stdout/stderr to its own stdout/stderr --- docker/supervisor/asciinema.conf | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/docker/supervisor/asciinema.conf b/docker/supervisor/asciinema.conf index aee1738..0857a41 100644 --- a/docker/supervisor/asciinema.conf +++ b/docker/supervisor/asciinema.conf @@ -3,9 +3,15 @@ nodaemon=true [program:nginx] command=/usr/sbin/nginx -g "daemon off;" -redirect_stderr=true +stdout_logfile=/dev/stdout +stdout_logfile_maxbytes=0 +stderr_logfile=/dev/stderr +stderr_logfile_maxbytes=0 [program:rails] -command=bundle exec unicorn -p 3000 -c config/unicorn.rb -redirect_stderr=true -directory=/app \ No newline at end of file +command=bundle exec unicorn -c config/unicorn.rb +directory=/app +stdout_logfile=/dev/stdout +stdout_logfile_maxbytes=0 +stderr_logfile=/dev/stderr +stderr_logfile_maxbytes=0 \ No newline at end of file