Sha256: ddff5cb5c15314bdc0e6e1de1e37515a5ffa78698619d1e12b1658b9c7d44528
Contents?: true
Size: 814 Bytes
Versions: 5
Compression:
Stored size: 814 Bytes
Contents
# Copyright (c) 2008-2013 Michael Dvorkin and contributors. # # Fat Free CRM is freely distributable under the terms of MIT license. # See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php #------------------------------------------------------------------------------ threads_count = Integer(ENV['RAILS_MAX_THREADS'] || 5) threads threads_count, threads_count rails_env = ENV.fetch('RAILS_ENV') { 'development' } environment rails_env port ENV.fetch('PORT') { 3000 } preload_app! unless rails_env == 'development' plugin :tmp_restart unless Puma.jruby? || Puma.windows? # workers supported workers Integer(ENV['WEB_CONCURRENCY'] || 2) before_fork do ActiveRecord::Base.connection_pool.disconnect! end on_worker_boot do ActiveRecord::Base.establish_connection end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
fat_free_crm-0.16.4 | config/puma.rb |
fat_free_crm-0.16.3 | config/puma.rb |
fat_free_crm-0.16.2 | config/puma.rb |
fat_free_crm-0.16.1 | config/puma.rb |
fat_free_crm-0.16.0 | config/puma.rb |