Sha256: 5b671ea93ebb8a67bf6a932a63094ef5dbb40530835eaae327371db0631d5846
Contents?: true
Size: 785 Bytes
Versions: 7
Compression:
Stored size: 785 Bytes
Contents
working_directory "<%= current_path %>" pid "<%= unicorn_pid %>" stderr_path "<%= unicorn_log %>" stdout_path "<%= unicorn_log %>" listen "/tmp/unicorn.<%= application %>.sock" worker_processes <%= unicorn_workers %> timeout 30 preload_app true before_exec do |server| ENV["BUNDLE_GEMFILE"] = "<%= current_path %>/Gemfile" end before_fork do |server, worker| defined?(ActiveRecord::Base) and ActiveRecord::Base.connection.disconnect! old_pid = "#{server.config[:pid]}.oldbin" if File.exists?(old_pid) && server.pid != old_pid begin Process.kill("QUIT", File.read(old_pid).to_i) rescue Errno::ENOENT, Errno::ESRCH end end end after_fork do |server, worker| ActiveRecord::Base.establish_connection ActiveRecord::Base.verify_active_connections! end
Version data entries
7 entries across 7 versions & 1 rubygems