Sha256: 14efaedd25d6705c24854b841ccd49395a2206fd4430026daf2f394242660b56

Contents?: true

Size: 551 Bytes

Versions: 7

Compression:

Stored size: 551 Bytes

Contents

require 'datadog/demo_env'

Datadog::DemoEnv.print_env('Puma master environment')

workers Integer(ENV["WEB_CONCURRENCY"] || 1)
threads 2, Integer(ENV['RAILS_MAX_THREADS'] || 24)

preload_app!

bind 'tcp://0.0.0.0:80'
environment ENV['RAILS_ENV'] || 'development'

on_worker_boot do
  ActiveSupport.on_load(:active_record) do
    ActiveRecord::Base.establish_connection
  end

  Datadog::DemoEnv.print_env('Puma worker environment')
end

before_fork do
  ActiveRecord::Base.connection_pool.disconnect!
  #$redis.pool_shutdown { |conn| conn.quit }
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ddtrace-0.51.1 integration/apps/rails-five/config/puma.rb
ddtrace-0.51.0 integration/apps/rails-five/config/puma.rb
ddtrace-0.50.0 integration/apps/rails-five/config/puma.rb
ddtrace-0.49.0 integration/apps/rails-five/config/puma.rb
ddtrace-0.48.0 integration/apps/rails-five/config/puma.rb
ddtrace-0.47.0 integration/apps/rails-five/config/puma.rb
ddtrace-0.46.0 integration/apps/rails-five/config/puma.rb