You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
318 B

  1. workers Integer(ENV['WEB_CONCURRENCY'] || 2)
  2. threads_count = Integer(ENV['MAX_THREADS'] || 5)
  3. threads threads_count, threads_count
  4. preload_app!
  5. rackup DefaultRackup
  6. port ENV['PORT'] || 3000
  7. environment ENV['RACK_ENV'] || 'development'
  8. on_worker_boot do
  9. ActiveRecord::Base.establish_connection
  10. end