Files
nairobi/config/puma.rb
2019-11-12 16:05:43 +01:00

16 lines
630 B
Ruby

# ATTENTION: This file is only used to run puma on your development
# machine. To configure puma on production environments, use the
# `puma.rb` file in Capistrano's `shared` folder.
# Puma can serve each request in a thread from an internal thread pool.
# Default is set to 5 threads for minimum and maximum, matching the
# default thread size of Active Record.
threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }.to_i
threads threads_count, threads_count
port ENV.fetch("PORT") { 3000 }
environment ENV.fetch("RAILS_ENV") { "development" }
# Allow puma to be restarted by `rails restart` command.
plugin :tmp_restart