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