Sha256: 47bf74e4e30f11af28808bd796aa2542c29221d935c852f3c04258a6231642c0

Contents?: true

Size: 722 Bytes

Versions: 10

Compression:

Stored size: 722 Bytes

Contents

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

# Preload application
preload_app!

# 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

10 entries across 10 versions & 1 rubygems

Version Path
mno-enterprise-core-2.0.9 lib/generators/mno_enterprise/templates/scripts/puma.rb
mno-enterprise-core-2.0.8 lib/generators/mno_enterprise/templates/scripts/puma.rb
mno-enterprise-core-2.0.7 lib/generators/mno_enterprise/templates/scripts/puma.rb
mno-enterprise-core-2.0.6 lib/generators/mno_enterprise/templates/scripts/puma.rb
mno-enterprise-core-2.0.5 lib/generators/mno_enterprise/templates/scripts/puma.rb
mno-enterprise-core-2.0.4 lib/generators/mno_enterprise/templates/scripts/puma.rb
mno-enterprise-core-2.0.3 lib/generators/mno_enterprise/templates/scripts/puma.rb
mno-enterprise-core-2.0.2 lib/generators/mno_enterprise/templates/scripts/puma.rb
mno-enterprise-core-2.0.1 lib/generators/mno_enterprise/templates/scripts/puma.rb
mno-enterprise-core-2.0.0 lib/generators/mno_enterprise/templates/scripts/puma.rb