Sha256: b746aad940d98c51ae1dddf302c48a361c22faf391d4a73838ba2dd819cc3d69

Contents?: true

Size: 343 Bytes

Versions: 5

Compression:

Stored size: 343 Bytes

Contents

require "./config/config"

environment Config.rack_env
port Config.port
quiet
threads Config.puma_min_threads.to_i, Config.puma_max_threads.to_i
workers Config.puma_workers.to_i

on_worker_boot do
  # force Sequel's thread pool to be refreshed
  Sequel::DATABASES.each { |db| db.disconnect }
end

preload_app!
Thread.abort_on_exception = true

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pliny-0.2.1 template/config/puma.rb
pliny-0.2.0 template/config/puma.rb
pliny-0.1.0 template/config/puma.rb
pliny-0.0.4 template/config/puma.rb
pliny-0.0.3 template/config/puma.rb