Refactoring: Make sure Puma environment matches RAILS_ENV ENV.

This commit is contained in:
Thorsten Eckel 2018-12-03 12:33:27 +01:00
parent b5a44ee0d0
commit 7ffa03731e

View file

@ -3,6 +3,8 @@ threads_count_min = Integer(ENV['MIN_THREADS'] || 5)
threads_count_max = Integer(ENV['MAX_THREADS'] || 30) threads_count_max = Integer(ENV['MAX_THREADS'] || 30)
threads threads_count_min, threads_count_max threads threads_count_min, threads_count_max
environment ENV.fetch('RAILS_ENV', 'development')
preload_app! preload_app!
on_worker_boot do on_worker_boot do