Sha256: bcf2c3874376f732348dac3e64a1555036e98d58f949bfe0fc3eca472d8fa956

Contents?: true

Size: 480 Bytes

Versions: 6

Compression:

Stored size: 480 Bytes

Contents

workers Integer(ENV['WEB_CONCURRENCY'] || 2)
threads_count = Integer(ENV['RAILS_MAX_THREADS'] || 5)
threads threads_count, threads_count

preload_app!

rackup      DefaultRackup
port        ENV['PORT']     || 3000
environment ENV['RACK_ENV'] || 'development'

on_worker_boot do
  # Worker specific setup for Rails 4.1+
  # See: https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server#on-worker-boot
  ActiveRecord::Base.establish_connection
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tang-0.2.1 spec/tang_app/config/puma.rb
tang-0.2.0 spec/tang_app/config/puma.rb
tang-0.1.0 spec/tang_app/config/puma.rb
tang-0.0.9 spec/tang_app/config/puma.rb
tang-0.0.8 spec/tang_app/config/puma.rb
tang-0.0.1 spec/tang_app/config/puma.rb