Sha256: 2767bc0e2cfb1b25a0b4567e255b6485beee53b556f68df500e4b1d328fbb933

Contents?: true

Size: 956 Bytes

Versions: 7

Compression:

Stored size: 956 Bytes

Contents

threads_count = ENV.fetch("STEALTH_MAX_THREADS") { 5 }.to_i
threads threads_count, threads_count

# Specifies the `port` that Puma will listen on to receive requests, default is 3000.
#
port ENV.fetch("PORT") { 3000 }

# Specifies the number of `workers` to boot in clustered mode.
# Workers are forked webserver processes. If using threads and workers together
# the concurrency of the application would be max `threads` * `workers`.
# Workers do not work on JRuby or Windows (both of which do not support
# processes).
#
# workers ENV.fetch("WEB_CONCURRENCY") { 2 }

# Use the `preload_app!` method when specifying a `workers` number.
# This directive tells Puma to first boot the application and load code
# before forking the application. This takes advantage of Copy On Write
# process behavior so workers use less memory.
#
# preload_app!

# Specifies the `environment` that Puma will run in.
#
environment ENV.fetch("STEALTH_ENV") { "development" }

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
stealth-2.0.0.beta7 lib/stealth/generators/builder/config/puma.rb
stealth-2.0.0.beta6 lib/stealth/generators/builder/config/puma.rb
stealth-2.0.0.beta5 lib/stealth/generators/builder/config/puma.rb
stealth-2.0.0.beta4 lib/stealth/generators/builder/config/puma.rb
stealth-2.0.0.beta3 lib/stealth/generators/builder/config/puma.rb
stealth-2.0.0.beta2 lib/stealth/generators/builder/config/puma.rb
stealth-2.0.0.beta1 lib/stealth/generators/builder/config/puma.rb