Sha256: bb6fe0d5bcb5d48447cf376ca1f73b9df86245dec8474e736a101692f6346be8

Contents?: true

Size: 488 Bytes

Versions: 51

Compression:

Stored size: 488 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

51 entries across 51 versions & 1 rubygems

Version Path
orchestration-0.6.16 lib/orchestration/templates/puma.rb.erb
orchestration-0.6.15 lib/orchestration/templates/puma.rb.erb
orchestration-0.6.14 lib/orchestration/templates/puma.rb.erb
orchestration-0.6.13 lib/orchestration/templates/puma.rb.erb
orchestration-0.6.12 lib/orchestration/templates/puma.rb.erb
orchestration-0.6.11 lib/orchestration/templates/puma.rb.erb
orchestration-0.6.10 lib/orchestration/templates/puma.rb.erb
orchestration-0.6.9 lib/orchestration/templates/puma.rb.erb
orchestration-0.6.8 lib/orchestration/templates/puma.rb.erb
orchestration-0.7.1 lib/orchestration/templates/puma.rb.erb
orchestration-0.6.7 lib/orchestration/templates/puma.rb.erb
orchestration-0.7.0 lib/orchestration/templates/puma.rb.erb
orchestration-0.6.6 lib/orchestration/templates/puma.rb.erb
orchestration-0.6.5 lib/orchestration/templates/puma.rb.erb
orchestration-0.6.4 lib/orchestration/templates/puma.rb.erb
orchestration-0.6.3 lib/orchestration/templates/puma.rb.erb
orchestration-0.6.2 lib/orchestration/templates/puma.rb.erb
orchestration-0.6.1 lib/orchestration/templates/puma.rb.erb
orchestration-0.5.11 lib/orchestration/templates/puma.rb.erb
orchestration-0.5.10 lib/orchestration/templates/puma.rb.erb