Sha256: b693d2ad44c5df8c81f3a23163249b7c130a135a79cfc1ae2a1a29c94ebdfb66

Contents?: true

Size: 1.11 KB

Versions: 74

Compression:

Stored size: 1.11 KB

Contents

# https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server

# The environment variable WEB_CONCURRENCY may be set to a default value based
# on dyno size. To manually configure this value use heroku config:set
# WEB_CONCURRENCY.
#
# Increasing the number of workers will increase the amount of resting memory
# your dynos use. Increasing the number of threads will increase the amount of
# potential bloat added to your dynos when they are responding to heavy
# requests.
#
# Starting with a low number of workers and threads provides adequate
# performance for most applications, even under load, while maintaining a low
# risk of overusing memory.
workers Integer(ENV.fetch("WEB_CONCURRENCY", 2))
threads_count = Integer(ENV.fetch("MAX_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

74 entries across 74 versions & 11 rubygems

Version Path
suspenders-1.53.0 templates/puma.rb
suspenders-1.52.0 templates/puma.rb
suspenders-1.51.0 templates/puma.rb
bulldozer-1.6.3 templates/puma.rb
bulldozer-1.6.2 templates/puma.rb
bulldozer-1.6.1 templates/puma.rb
bulldozer-1.6.0 templates/puma.rb
suspenders-1.50.0 templates/puma.rb
suspenders-1.49.0 templates/puma.rb
suspenders-1.48.0 templates/puma.rb
suspenders-1.47.0 templates/puma.rb
suspenders-1.46.0 templates/puma.rb
welaika-suspenders-2.28.0 templates/puma.rb
suspenders-1.45.0 templates/puma.rb
welaika-suspenders-2.27.0 templates/puma.rb
voyage-1.44.0.14 templates/puma.rb
welaika-suspenders-2.26.0 templates/puma.rb
voyage-1.44.0.13 templates/puma.rb
gimbal-0.3.0 templates/puma.rb
voyage-1.44.0.11 templates/puma.rb