Sha256: 8f78851a7343b25768dbe653626ff9bc333ec3edcea46488d790bd083d0f6c63

Contents?: true

Size: 552 Bytes

Versions: 8

Compression:

Stored size: 552 Bytes

Contents

workers Integer(ENV["WEB_CONCURRENCY"] || 1)
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

8 entries across 8 versions & 1 rubygems

Version Path
decko-0.11.7 lib/decko/generators/deck/templates/config/puma.rb
decko-0.11.6 lib/decko/generators/deck/templates/config/puma.rb
decko-0.11.5 lib/decko/generators/deck/templates/config/puma.rb
decko-0.11.4 lib/decko/generators/deck/templates/config/puma.rb
decko-0.11.3 lib/decko/generators/deck/templates/config/puma.rb
decko-0.11.2 lib/decko/generators/deck/templates/config/puma.rb
decko-0.11.1 lib/decko/generators/deck/templates/config/puma.rb
decko-0.11.0 lib/decko/generators/deck/templates/config/puma.rb