Sha256: 960151d15b6cb3a9c47085ee6c95350f9cb9b379efb604bff6286f97b4c9f317

Contents?: true

Size: 503 Bytes

Versions: 2

Compression:

Stored size: 503 Bytes

Contents

# frozen_string_literal: true

max_threads_count = ENV.fetch("HANAMI_MAX_THREADS", 5)
min_threads_count = ENV.fetch("HANAMI_MIN_THREADS") { max_threads_count }
threads min_threads_count, max_threads_count

port        ENV.fetch("<%= Hanami::Port::ENV_VAR %>", <%= Hanami::Port::DEFAULT %>)
environment ENV.fetch("HANAMI_ENV", "development")
workers     ENV.fetch("HANAMI_WEB_CONCURRENCY", 0)

if ENV.fetch("HANAMI_WEB_CONCURRENCY", 0) > 0
  on_worker_boot do
    Hanami.shutdown
  end
end

preload_app!

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hanami-cli-2.1.0.beta2 lib/hanami/cli/generators/gem/app/puma.erb
hanami-cli-2.1.0.beta1 lib/hanami/cli/generators/gem/app/puma.erb