Sha256: 6b7ac375486fbadae02399b2ad9ce69299b540d215c3c826aeca0233605d50e5

Contents?: true

Size: 933 Bytes

Versions: 2

Compression:

Stored size: 933 Bytes

Contents

########################################
########################################
##     _____                          ##
##    | ___ \                         ##
##    | |_/ /   _ _ __ ___   __ _     ##
##    |  __/ | | | '_ ` _ \ / _` |    ##
##    | |  | |_| | | | | | | (_| |    ##
##    \_|   \__,_|_| |_| |_|\__,_|    ##
##                                    ##
########################################
########################################

workers Integer(ENV['WEB_CONCURRENCY'] || 2)
threads_count = Integer(ENV['RAILS_MAX_THREADS'] || 5)
threads threads_count, threads_count

preload_app!

rackup      DefaultRackup
port        ENV['PORT']     || 3000
environment ENV['RACK_ENV'] || 'development'

on_worker_boot do
  # Worker specific setup for Rails 4.1+
  # See: https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server#on-worker-boot
  ActiveRecord::Base.establish_connection
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fl-0.3.6 config/puma.rb
fl-0.3.5 config/puma.rb