Sha256: 07ebf1d43b3d6cc4bd44dcdf2d1d2e1fea77eebb4f3b1bf3e6787e8ef5dad7fe

Contents?: true

Size: 744 Bytes

Versions: 9

Compression:

Stored size: 744 Bytes

Contents

default[:railsapp][:server_names] = "_"

default[:railsapp][:ssl] = false
default[:railsapp][:ssl_crt_path] = nil
default[:railsapp][:ssl_key_path] = nil

default[:railsapp][:db_name] = "#{node[:application]}_#{node[:rails_env]}"

default[:railsapp][:worker_processes] = 4
default[:railsapp][:request_timeout] = 60
default[:railsapp][:worker_user]  = 'nobody'
default[:railsapp][:worker_group] = 'nogroup'

default[:railsapp][:before_fork] = <<-RUBY
  ActiveRecord::Base.connection.disconnect! if defined?(ActiveRecord::Base)
  Resque.redis.quit if defined?(Resque)
RUBY

default[:railsapp][:after_fork] = <<-RUBY
  ActiveRecord::Base.establish_connection if defined?(ActiveRecord::Base)
  Resque.redis = Redis.connect if defined?(Resque)
RUBY

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mana-0.0.10 cookbooks/railsapp/attributes/default.rb
mana-0.0.8 cookbooks/railsapp/attributes/default.rb
mana-0.0.7 cookbooks/railsapp/attributes/default.rb
mana-0.0.6 cookbooks/railsapp/attributes/default.rb
mana-0.0.5 cookbooks/railsapp/attributes/default.rb
mana-0.0.4 cookbooks/railsapp/attributes/default.rb
mana-0.0.3 cookbooks/railsapp/attributes/default.rb
mana-0.0.2 cookbooks/railsapp/attributes/default.rb
mana-0.0.1 cookbooks/railsapp/attributes/default.rb