Sha256: dc7500c827f8dc71b12bfcb07f3750f29a5d13ae3cd0802be52e7bb3606574d0
Contents?: true
Size: 605 Bytes
Versions: 37
Compression:
Stored size: 605 Bytes
Contents
worker_count = ENV['WEB_CONCURRENCY'] worker_count ||= Rails.env.development? ? 1 : 2 thread_count = ENV['RAILS_MAX_THREADS'] thread_count ||= Rails.env.development? ? 1 : 5 workers Integer(worker_count) threads Integer(thread_count), Integer(thread_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
37 entries across 37 versions & 1 rubygems