Sha256: f2b00f88fd2e05d4cd75976def1c4b9f23b26dcdda0fe082a142d77cb83c8b09

Contents?: true

Size: 552 Bytes

Versions: 9

Compression:

Stored size: 552 Bytes

Contents

workers Integer(ENV["WEB_CONCURRENCY"] || 0)
min_threads_count = Integer(ENV["RAILS_MIN_THREADS"] || 1)
max_threads_count = Integer(ENV["RAILS_MAX_THREADS"] || 1)
threads min_threads_count, max_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

9 entries across 9 versions & 1 rubygems

Version Path
card-1.104.2 lib/generators/deck/templates/config/puma.rb
card-1.104.1 lib/generators/deck/templates/config/puma.rb
card-1.104.0 lib/generators/deck/templates/config/puma.rb
card-1.103.4 lib/generators/deck/templates/config/puma.rb
card-1.103.3 lib/generators/deck/templates/config/puma.rb
card-1.103.2 lib/generators/deck/templates/config/puma.rb
card-1.103.1 lib/generators/deck/templates/config/puma.rb
card-1.103.0 lib/generators/deck/templates/config/puma.rb
card-1.102.0 lib/generators/deck/templates/config/puma.rb