Sha256: c5e97b937ef7b1d11b47d1afe377bbe750596d3ff436afdf873e6118eb4cb6a3
Contents?: true
Size: 438 Bytes
Versions: 2
Compression:
Stored size: 438 Bytes
Contents
# frozen_string_literal: true workers_count = Integer(ENV['WEB_CONCURRENCY'] || 1) threads_count = Integer(ENV['MAX_THREADS'] || 5) threads threads_count, threads_count port ENV['PORT'] || 9292 environment ENV['RACK_ENV'] || 'production' if workers_count > 1 preload_app! workers workers_count # rubocop:disable Lint/EmptyBlock before_fork do end on_worker_boot do end # rubocop:enable Lint/EmptyBlock end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hoboken-0.10.0 | lib/hoboken/templates/puma.rb.tt |
hoboken-0.9.0 | lib/hoboken/templates/puma.rb.tt |