Sha256: b5f05f968efe67fa57975b636300a9f8207ad6d8b261cf08b581fd32d51fddf1

Contents?: true

Size: 447 Bytes

Versions: 12

Compression:

Stored size: 447 Bytes

Contents

workers Integer(ENV.fetch("PUMA_WORKERS", 2))
threads_count = Integer(ENV.fetch("PUMA_THREADS", 2))
threads(threads_count, threads_count)

preload_app!

rackup DefaultRackup
environment ENV.fetch('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

12 entries across 12 versions & 1 rubygems

Version Path
kazan-0.5.0 templates/puma.rb
kazan-0.4.0 templates/puma.rb
kazan-0.3.1 templates/puma.rb
kazan-0.3.0 templates/puma.rb
kazan-0.2.4 templates/puma.rb
kazan-0.2.3 templates/puma.rb
kazan-0.2.2 templates/puma.rb
kazan-0.2.1 templates/puma.rb
kazan-0.2.0 templates/puma.rb
kazan-0.1.2 templates/puma.rb
kazan-0.1.1 templates/puma.rb
kazan-0.1.0 templates/puma.rb