lib/pah/files/config/puma.rb in pah-0.0.21 vs lib/pah/files/config/puma.rb in pah-0.0.22
- old
+ new
@@ -1,17 +1,17 @@
# https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server
-workers Integer(ENV['PUMA_WORKERS'] || 3)
-threads Integer(ENV['MIN_THREADS'] || 1), Integer(ENV['MAX_THREADS'] || 16)
+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
+rackup DefaultRackup
+port ENV['PORT'] || 3000
environment ENV['RACK_ENV'] || 'development'
on_worker_boot do
- # worker specific setup
- ActiveSupport.on_load(:active_record) do
- ActiveRecord::Base.establish_connection
- end
-end
+ # Worker specific setup for Rails 4.1+
+ # See: https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server#on-worker-boot
+ ActiveRecord::Base.establish_connection
+end
\ No newline at end of file