Adding config for puma, dashboard layout, fixing some queries
This commit is contained in:
parent
447cfef62d
commit
aab9f57e36
25 changed files with 264 additions and 134 deletions
13
config/puma.rb
Normal file
13
config/puma.rb
Normal file
|
@ -0,0 +1,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
|
Loading…
Add table
Add a link
Reference in a new issue