Sha256: 41b0ca80cf3c6334a66824b34402449e2f12d52948b8a205ebb933f4f7a5b1f8

Contents?: true

Size: 481 Bytes

Versions: 19

Compression:

Stored size: 481 Bytes

Contents

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

19 entries across 19 versions & 2 rubygems

Version Path
myrails-7.0.0 lib/myrails/templates/heroku/puma.rb
myrails-6.0.0 lib/myrails/templates/heroku/puma.rb
myrails-5.0.0 lib/myrails/templates/heroku/puma.rb
myrails-4.0.0 lib/myrails/templates/heroku/puma.rb
myrails-3.2.1 lib/myrails/templates/heroku/puma.rb
myrails-3.2.0 lib/myrails/templates/heroku/puma.rb
myrails-3.1.0 lib/myrails/templates/heroku/puma.rb
myrails-3.0.0 lib/myrails/templates/heroku/puma.rb
myrails-2.2.2 lib/myrails/templates/heroku/puma.rb
blueberry_rails-0.4.0 templates/puma.rb
myrails-2.2.1 lib/myrails/templates/heroku/puma.rb
myrails-2.2.0 lib/myrails/templates/heroku/puma.rb
myrails-2.1.0 lib/myrails/templates/heroku/puma.rb
myrails-2.0.0 lib/myrails/templates/heroku/puma.rb
myrails-1.1.1 lib/myrails/templates/heroku/puma.rb
myrails-1.1.0 lib/myrails/templates/heroku/puma.rb
myrails-1.0.2 lib/myrails/templates/heroku/puma.rb
myrails-1.0.1 lib/myrails/templates/heroku/puma.rb
myrails-1.0.0 lib/myrails/templates/heroku/puma.rb