Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@

workers worker_count

before_worker_boot do
# Re-open appenders after forking the process
SemanticLogger.reopen
end

Comment thread
mwtrew marked this conversation as resolved.
# 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
Expand All @@ -48,3 +53,5 @@

# Allow puma to be restarted by `bin/rails restart` command.
plugin :tmp_restart


Loading