Sha256: 57800505334a2ab429213da145349573c44828487dd13a1b7e40ced5d8de21f2

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", 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

6 entries across 6 versions & 1 rubygems

Version Path
slining-1.7.0 templates/puma.rb
slining-1.6.0 templates/puma.rb
slining-1.5.0 templates/puma.rb
slining-1.4.0 templates/puma.rb
slining-1.3.0 templates/puma.rb
slining-1.2.0 templates/puma.rb