Browse Source

Refactoring: Make sure Puma environment matches RAILS_ENV ENV.

Thorsten Eckel 6 years ago
parent
commit
7ffa03731e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      config/puma.rb

+ 2 - 0
config/puma.rb

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