Sha256: 9c29ddc3d88c2c55c2a27d4598366ca2a681f6748c4a60123d189260f1c9ff02

Contents?: true

Size: 476 Bytes

Versions: 13

Compression:

Stored size: 476 Bytes

Contents

environment ENV.fetch('RAILS_ENV', 'development')

port ENV.fetch('WEB_PORT', 3000)
workers ENV.fetch('WEB_CONCURRENCY', 4)
threads_count = ENV.fetch('RAILS_MAX_THREADS', 8)

pidfile './tmp/pids/server.pid'
threads threads_count, threads_count

preload_app! if ENV.key?('WEB_PRELOAD_APP')

before_fork do
  ActiveRecord::Base.connection_pool.disconnect! if defined?(ActiveRecord)
end

on_worker_boot do
  ActiveRecord::Base.establish_connection if defined?(ActiveRecord)
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
orchestration-0.7.15 lib/orchestration/templates/puma.rb.erb
orchestration-0.7.14 lib/orchestration/templates/puma.rb.erb
orchestration-0.7.13 lib/orchestration/templates/puma.rb.erb
orchestration-0.7.12 lib/orchestration/templates/puma.rb.erb
orchestration-0.7.11 lib/orchestration/templates/puma.rb.erb
orchestration-0.7.10 lib/orchestration/templates/puma.rb.erb
orchestration-0.7.9 lib/orchestration/templates/puma.rb.erb
orchestration-0.7.8 lib/orchestration/templates/puma.rb.erb
orchestration-0.7.6 lib/orchestration/templates/puma.rb.erb
orchestration-0.7.5 lib/orchestration/templates/puma.rb.erb
orchestration-0.7.4 lib/orchestration/templates/puma.rb.erb
orchestration-0.7.3 lib/orchestration/templates/puma.rb.erb
orchestration-0.7.2 lib/orchestration/templates/puma.rb.erb