Sha256: 9a9890d5caf6d07a84894f86043f6c0ea77dac2e2ac10c63dbbe930e194a44b6

Contents?: true

Size: 406 Bytes

Versions: 4

Compression:

Stored size: 406 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", 2300)
environment ENV.fetch("HANAMI_ENV", "development")
workers     ENV.fetch("HANAMI_WEB_CONCURRENCY", 2)

on_worker_boot do
  Hanami.shutdown
end

preload_app!

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hanami-cli-2.0.0 lib/hanami/cli/generators/gem/app/puma.erb
hanami-cli-2.0.0.rc1 lib/hanami/cli/generators/gem/app/puma.erb
hanami-cli-2.0.0.beta4 lib/hanami/cli/generators/gem/app/puma.erb
hanami-cli-2.0.0.beta3 lib/hanami/cli/generators/gem/app/puma.erb