Sha256: 17bd0a6a209fccc0646f7ec96b0e5c5d979ca87e559f97d5b60e8b4f01e525a3

Contents?: true

Size: 1.14 KB

Versions: 14

Compression:

Stored size: 1.14 KB

Contents

# frozen_string_literal: true

# 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

14 entries across 14 versions & 1 rubygems

Version Path
welaika-suspenders-3.0 templates/puma.rb
welaika-suspenders-2.36 templates/puma.rb
welaika-suspenders-2.35 templates/puma.rb
welaika-suspenders-2.34 templates/puma.rb
welaika-suspenders-2.33 templates/puma.rb
welaika-suspenders-2.32.2 templates/puma.rb
welaika-suspenders-2.32.1 templates/puma.rb
welaika-suspenders-2.32.0 templates/puma.rb
welaika-suspenders-2.31.0 templates/puma.rb
welaika-suspenders-2.30.0 templates/puma.rb
welaika-suspenders-2.29.0 templates/puma.rb
welaika-suspenders-2.29.0.alpha.3 templates/puma.rb
welaika-suspenders-2.29.0.alpha.2 templates/puma.rb
welaika-suspenders-2.29.0.alpha.1 templates/puma.rb