Sha256: 3b945095d3c3dd8e3cd7d8cc98544534f6db4c4c31002d79df05a61498f38f9b

Contents?: true

Size: 928 Bytes

Versions: 10

Compression:

Stored size: 928 Bytes

Contents

# Puma is a fast, concurrent web server for Ruby & Rack
#
# Learn more at: https://puma.io
# Bridgetown configuration documentation:
# https://edge.bridgetownrb.com/docs/configuration/puma

# This port number can be overriden by a bind configuration option
#
port ENV.fetch("BRIDGETOWN_PORT") { 4000 }

# You can adjust the number of workers (separate processes) and threads
# (per process) based on your production system
#
if ENV["BRIDGETOWN_ENV"] == "production"
  workers ENV.fetch("BRIDGETOWN_CONCURRENCY") { 4 }
end

max_threads_count = ENV.fetch("BRIDGETOWN_MAX_THREADS") { 5 }
min_threads_count = ENV.fetch("BRIDGETOWN_MIN_THREADS") { max_threads_count }
threads min_threads_count, max_threads_count

# Preload the application for maximum performance
#
preload_app!

# Use the Bridgetown logger format
#
require "bridgetown-core/rack/logger"
log_formatter do |msg|
  Bridgetown::Rack::Logger.message_with_prefix msg
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
bridgetown-core-1.3.4 lib/site_template/config/puma.rb
bridgetown-core-1.3.3 lib/site_template/config/puma.rb
bridgetown-core-1.3.2 lib/site_template/config/puma.rb
bridgetown-core-1.3.1 lib/site_template/config/puma.rb
bridgetown-core-1.3.0 lib/site_template/config/puma.rb
bridgetown-core-1.3.0.beta3 lib/site_template/config/puma.rb
bridgetown-core-1.3.0.beta2 lib/site_template/config/puma.rb
bridgetown-core-1.3.0.beta1 lib/site_template/config/puma.rb
bridgetown-core-1.2.0 lib/site_template/config/puma.rb
bridgetown-core-1.2.0.beta5 lib/site_template/config/puma.rb