Sha256: 9dd960528feb7b0e10d2ce364546877a285c1e2e6751858670112bc3d6c95b7a

Contents?: true

Size: 739 Bytes

Versions: 20

Compression:

Stored size: 739 Bytes

Contents

# Performance tuning
workers <%= @num_cpus %>
threads 8,16
worker_timeout 60

# Detach master from bundler context
prune_bundler

# Configuration
rails_env = ENV['RAILS_ENV'] || 'production'
working_directory = File.expand_path('../../../../../current', './scripts/production/puma.rb')

# General config
environment rails_env
directory working_directory
pidfile "#{working_directory}/tmp/pids/puma.pid"
state_path "#{working_directory}/tmp/pids/puma.state"
stdout_redirect "#{working_directory}/log/puma.stdout.log", "#{working_directory}/log/puma.stderr.log"
bind "unix://#{working_directory}/tmp/sockets/puma.sock"

on_worker_boot do
  # ActiveSupport.on_load(:active_record) do
  #   ActiveRecord::Base.establish_connection
  # end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
mno-enterprise-core-3.4.0 lib/generators/mno_enterprise/templates/scripts/puma.rb
mno-enterprise-core-3.3.3 lib/generators/mno_enterprise/templates/scripts/puma.rb
mno-enterprise-core-3.3.2 lib/generators/mno_enterprise/templates/scripts/puma.rb
mno-enterprise-core-3.2.1 lib/generators/mno_enterprise/templates/scripts/puma.rb
mno-enterprise-core-3.3.1 lib/generators/mno_enterprise/templates/scripts/puma.rb
mno-enterprise-core-3.3.0 lib/generators/mno_enterprise/templates/scripts/puma.rb
mno-enterprise-core-3.2.0 lib/generators/mno_enterprise/templates/scripts/puma.rb
mno-enterprise-core-3.1.4 lib/generators/mno_enterprise/templates/scripts/puma.rb
mno-enterprise-core-3.0.7 lib/generators/mno_enterprise/templates/scripts/puma.rb
mno-enterprise-core-3.1.3 lib/generators/mno_enterprise/templates/scripts/puma.rb
mno-enterprise-core-3.0.6 lib/generators/mno_enterprise/templates/scripts/puma.rb
mno-enterprise-core-3.1.2 lib/generators/mno_enterprise/templates/scripts/puma.rb
mno-enterprise-core-3.0.5 lib/generators/mno_enterprise/templates/scripts/puma.rb
mno-enterprise-core-3.1.1 lib/generators/mno_enterprise/templates/scripts/puma.rb
mno-enterprise-core-3.0.4 lib/generators/mno_enterprise/templates/scripts/puma.rb
mno-enterprise-core-3.1.0 lib/generators/mno_enterprise/templates/scripts/puma.rb
mno-enterprise-core-3.0.3 lib/generators/mno_enterprise/templates/scripts/puma.rb
mno-enterprise-core-3.0.2 lib/generators/mno_enterprise/templates/scripts/puma.rb
mno-enterprise-core-3.0.1 lib/generators/mno_enterprise/templates/scripts/puma.rb
mno-enterprise-core-3.0.0 lib/generators/mno_enterprise/templates/scripts/puma.rb