diff --git a/config/puma.rb b/config/puma.rb index 71f0f48ff..0f6ac3ebb 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -38,6 +38,11 @@ workers worker_count + before_worker_boot do + # Re-open appenders after forking the process + SemanticLogger.reopen + end + # Use the `preload_app!` method when specifying a `workers` number. # This directive tells Puma to first boot the application and load code # before forking the application. This takes advantage of Copy On Write @@ -48,3 +53,5 @@ # Allow puma to be restarted by `bin/rails restart` command. plugin :tmp_restart + +