Sha256: cc6cfedb8150d9a82c72ff9eac28850a9e2e129190e6c2f2d8ac3e906daa0ef8

Contents?: true

Size: 474 Bytes

Versions: 15

Compression:

Stored size: 474 Bytes

Contents

workers Integer(ENV['WEB_CONCURRENCY'] || 2)
threads_count = Integer(ENV['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

15 entries across 15 versions & 2 rubygems

Version Path
happy_seed-0.0.19 lib/generators/happy_seed/base/templates/config/puma.rb
happy_seed-0.0.18 lib/generators/happy_seed/base/templates/config/puma.rb
happy_seed-0.0.17 lib/generators/happy_seed/base/templates/config/puma.rb
horse_power-1.0.0 lib/generators/horse_power/app_environment/templates/puma.rb
horse_power-0.9.0 lib/generators/horse_power/app_environment/templates/puma.rb
horse_power-0.8.5 lib/generators/horse_power/app_environment/templates/puma.rb
horse_power-0.8.3 lib/generators/horse_power/app_environment/templates/puma.rb
horse_power-0.8.2 lib/generators/horse_power/app_environment/templates/puma.rb
horse_power-0.8.1 lib/generators/horse_power/app_environment/templates/puma.rb
horse_power-0.8.0 lib/generators/horse_power/app_environment/templates/puma.rb
horse_power-0.7.1 lib/generators/horse_power/app_environment/templates/puma.rb
horse_power-0.7.0 lib/generators/horse_power/app_environment/templates/puma.rb
horse_power-0.6.5 lib/generators/horse_power/app_environment/templates/puma.rb
horse_power-0.6.0 lib/generators/horse_power/app_environment/templates/puma.rb
horse_power-0.5.0 lib/generators/horse_power/app_environment/templates/puma.rb