From c168e628e2b287ef47933ae7aa33f9587b8bbd5d Mon Sep 17 00:00:00 2001 From: Lars Henrik Mai Date: Sat, 5 Mar 2016 11:41:04 +0100 Subject: [PATCH] Flush stdout immediately in development in order to get realtime log output in docker --- config/environments/development.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/environments/development.rb b/config/environments/development.rb index ddf0e90..47ce644 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -34,4 +34,8 @@ Rails.application.configure do # Raises error for missing translations # config.action_view.raise_on_missing_translations = true + + # flush stdout in order to get logs in realtime + $stdout.sync = true + end