about summary refs log tree commit diff
path: root/config/puma.rb
blob: 49f4b974da90b131540474e3bc7a3464de04d31d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
workers Integer(ENV['WEB_CONCURRENCY'] || 2)
threads_count = Integer(ENV['MAX_THREADS'] || 5)
threads threads_count, threads_count

preload_app!

rackup      DefaultRackup
port        ENV['PORT']     || 3000
environment ENV['RACK_ENV'] || 'development'

on_worker_boot do
  ActiveRecord::Base.establish_connection
end