1workers Integer(ENV['WEB_CONCURRENCY'] || 2)
2threads_count = Integer(ENV['RAILS_MAX_THREADS'] || 5)
3threads threads_count, threads_count
4
5preload_app!
6
7rackup DefaultRackup
8port ENV['PORT'] || 3000
9environment ENV['RACK_ENV'] || 'development'
10
11on_worker_boot do
12 # Worker specific setup for Rails 4.1+
13 # See: https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server#on-worker-boot
14 ActiveRecord::Base.establish_connection
15end
16