Sha256: 8ee11d1edc8802a4703821d23f59d2f5cdc21786bec72bf98440c5d57b05d601

Contents?: true

Size: 711 Bytes

Versions: 6

Compression:

Stored size: 711 Bytes

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.
workers Integer(ENV.fetch("WEB_CONCURRENCY", 3))
threads_count = Integer(ENV.fetch("MAX_THREADS", 5))
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

6 entries across 6 versions & 3 rubygems

Version Path
suspenders-1.32.0 templates/puma.rb
underwear-0.0.1 templates/puma.rb
welaika-suspenders-2.17.0 templates/puma.rb
suspenders-1.31.0 templates/puma.rb
welaika-suspenders-2.15.0 templates/puma.rb
suspenders-1.30.0 templates/puma.rb