search for: copy_on_write_friend

Displaying 3 results from an estimated 3 matches for "copy_on_write_friend".

Did you mean: copy_on_write_friendly
2011 May 19
2
unicorn doesn't restart properly after cap deploy (not using Bundler)
...ot;/opt/ruby-enterprise-1.8.7-2010.02/bin/unicorn_rails" pid "/var/www/lookbook/shared/pids/unicorn.pid" stderr_path "/var/www/lookbook/shared/log/unicorn.stderr.log" stdout_path "/var/www/lookbook/shared/log/unicorn.stdout.log" preload_app true if GC.respond_to?(:copy_on_write_friendly=) ? GC.copy_on_write_friendly = true end before_fork do |server, worker| ? STDERR.puts "BEFORE FORK:" ? STDERR.puts ENV.inspect ? defined?(ActiveRecord::Base) and ? ? ActiveRecord::Base.connection.disconnect! ? if old_pid != server.pid ? ? begin ? ? ? sig = (worker.nr?+ 1) >= server....
2010 Oct 02
2
Unicorn doesn't reload the app after the HUP signal
...= ENV[''RAILS_ENV''] || ''production'' worker_processes (rails_env == ''production'' ? 3 : 1) preload_app true timeout 30 listen File.expand_path(File.join(__FILE__, "../../tmp/sockets/unicorn.sock")), :backlog => 2048 if GC.respond_to?(:copy_on_write_friendly=) GC.copy_on_write_friendly = true end before_fork do |server, worker| old_pid = RAILS_ROOT + ''/tmp/pids/unicorn.pid.oldbin'' if File.exists?(old_pid) && server.pid != old_pid begin Process.kill("QUIT", File.read(old_pid).to_i) rescue Errno:...
2012 Aug 31
1
after_fork - ActiveRecord::AdapterNotSpecified
...tra test. We have #{@users.count} users." end The config.ru require ''./test'' run Sinatra::Application The config/unicorn.rb @dir = ''/home/frankr/tmp/sinatra/'' pidfile = " #{@dir}log/unicorn.pid" worker_processes 3 preload_app true GC.respond_to?(:copy_on_write_friendly=) and GC.copy_on_write_friendly = true timeout 30 listen ''/tmp/sinatra.socket'', :backlog => 64 pid pidfile stderr_path "#{@dir}log/unicorn.stderr.log" stdout_path "#{@dir}log/unicorn.stdout.log" before_fork do |server, worker| ? defined?(ActiveRecord::Ba...