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.5.4 lib/generators/disco_app/templates/config/puma.rb
disco_app-0.5.5 lib/generators/disco_app/templates/config/puma.rb
disco_app-0.5.6 lib/generators/disco_app/templates/config/puma.rb
disco_app-0.6.0 lib/generators/disco_app/templates/config/puma.rb
disco_app-0.6.1 lib/generators/disco_app/templates/config/puma.rb
disco_app-0.6.2 lib/generators/disco_app/templates/config/puma.rb
disco_app-0.6.3 lib/generators/disco_app/templates/config/puma.rb
disco_app-0.6.4 lib/generators/disco_app/templates/config/puma.rb
disco_app-0.6.5 lib/generators/disco_app/templates/config/puma.rb
disco_app-0.6.6 lib/generators/disco_app/templates/config/puma.rb
disco_app-0.6.7 lib/generators/disco_app/templates/config/puma.rb
disco_app-0.6.8 lib/generators/disco_app/templates/config/puma.rb
disco_app-0.6.9 lib/generators/disco_app/templates/config/puma.rb
disco_app-0.7.0 lib/generators/disco_app/templates/config/puma.rb
disco_app-0.7.1 lib/generators/disco_app/templates/config/puma.rb
disco_app-0.7.2 lib/generators/disco_app/templates/config/puma.rb
disco_app-0.8.0 lib/generators/disco_app/templates/config/puma.rb
disco_app-0.8.1 lib/generators/disco_app/templates/config/puma.rb
disco_app-0.8.2 lib/generators/disco_app/templates/config/puma.rb
disco_app-0.8.3 lib/generators/disco_app/templates/config/puma.rb