Sha256: 8848c50198c8ca256c3ca75eb6d22b8639bbc1626d6a49f16af629ad7f891db8

Contents?: true

Size: 475 Bytes

Versions: 125

Compression:

Stored size: 475 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

125 entries across 125 versions & 5 rubygems

Version Path
disco_app-0.10.2 lib/generators/disco_app/templates/config/puma.rb
disco_app-0.10.3 lib/generators/disco_app/templates/config/puma.rb
disco_app-0.10.4 lib/generators/disco_app/templates/config/puma.rb
disco_app-0.10.5 lib/generators/disco_app/templates/config/puma.rb
disco_app-0.11.0 lib/generators/disco_app/templates/config/puma.rb
disco_app-0.11.1 lib/generators/disco_app/templates/config/puma.rb
disco_app-0.12.0 lib/generators/disco_app/templates/config/puma.rb
disco_app-0.12.1 lib/generators/disco_app/templates/config/puma.rb
disco_app-0.12.5 lib/generators/disco_app/templates/config/puma.rb
disco_app-0.12.6 lib/generators/disco_app/templates/config/puma.rb
disco_app-0.12.7 lib/generators/disco_app/templates/config/puma.rb
disco_app-0.13.0 lib/generators/disco_app/templates/config/puma.rb
disco_app-0.13.1 lib/generators/disco_app/templates/config/puma.rb
disco_app-0.13.2 lib/generators/disco_app/templates/config/puma.rb
disco_app-0.13.3 lib/generators/disco_app/templates/config/puma.rb
disco_app-0.13.4 lib/generators/disco_app/templates/config/puma.rb
disco_app-0.13.5 lib/generators/disco_app/templates/config/puma.rb
disco_app-0.13.6 lib/generators/disco_app/templates/config/puma.rb
disco_app-0.13.7 lib/generators/disco_app/templates/config/puma.rb
disco_app-0.13.8 lib/generators/disco_app/templates/config/puma.rb