Sha256: e68b58c3ad24c95f84b670276898aa9eee9ab1887ef0046b1aaa6fbae59a0267

Contents?: true

Size: 695 Bytes

Versions: 21

Compression:

Stored size: 695 Bytes

Contents

development = ENV.fetch("HANAMI_ENV", "development") == "development"

require "concurrent"
require "localhost" if development
Bundler.require :tools if development

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", Concurrent.physical_processor_count
worker_timeout 3600 if development
ssl_bind "localhost", "9050" if development
pidfile ENV.fetch "PIDFILE", "tmp/server.pid"
on_worker_boot { Hanami.shutdown }
plugin :tmp_restart

preload_app!

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
hanamismith-0.17.1 lib/hanamismith/templates/%project_name%/config/puma.rb.erb
hanamismith-0.17.0 lib/hanamismith/templates/%project_name%/config/puma.rb.erb
hanamismith-0.16.0 lib/hanamismith/templates/%project_name%/config/puma.rb.erb
hanamismith-0.15.0 lib/hanamismith/templates/%project_name%/config/puma.rb.erb
hanamismith-0.14.1 lib/hanamismith/templates/%project_name%/config/puma.rb.erb
hanamismith-0.14.0 lib/hanamismith/templates/%project_name%/config/puma.rb.erb
hanamismith-0.13.0 lib/hanamismith/templates/%project_name%/config/puma.rb.erb
hanamismith-0.12.0 lib/hanamismith/templates/%project_name%/config/puma.rb.erb
hanamismith-0.11.0 lib/hanamismith/templates/%project_name%/config/puma.rb.erb
hanamismith-0.10.0 lib/hanamismith/templates/%project_name%/config/puma.rb.erb
hanamismith-0.9.0 lib/hanamismith/templates/%project_name%/config/puma.rb.erb
hanamismith-0.8.0 lib/hanamismith/templates/%project_name%/config/puma.rb.erb
hanamismith-0.7.0 lib/hanamismith/templates/%project_name%/config/puma.rb.erb
hanamismith-0.6.0 lib/hanamismith/templates/%project_name%/config/puma.rb.erb
hanamismith-0.5.0 lib/hanamismith/templates/%project_name%/config/puma.rb.erb
hanamismith-0.4.0 lib/hanamismith/templates/%project_name%/config/puma.rb.erb
hanamismith-0.3.1 lib/hanamismith/templates/%project_name%/config/puma.rb.erb
hanamismith-0.3.0 lib/hanamismith/templates/%project_name%/config/puma.rb.erb
hanamismith-0.2.0 lib/hanamismith/templates/%project_name%/config/puma.rb.erb
hanamismith-0.1.0 lib/hanamismith/templates/%project_name%/config/puma.rb.erb