Sha256: c846e0fdbadac61d5204b1b049060da4e897d85c001a92749ec192f05980a094

Contents?: true

Size: 750 Bytes

Versions: 11

Compression:

Stored size: 750 Bytes

Contents

# set path to app that will be used to configure unicorn, 
# # note the trailing slash in this example
@dir = "/home/kyle/work/10gen/ruby-driver/test/load/"

worker_processes 10
working_directory @dir

preload_app true

timeout 30

# Specify path to socket unicorn listens to,
# we will use this in our nginx.conf later
listen "#{@dir}tmp/sockets/unicorn.sock", :backlog => 64

# Set process id path
pid "#{@dir}tmp/pids/unicorn.pid"

# # Set log file paths
stderr_path "#{@dir}log/unicorn.stderr.log"
stdout_path "#{@dir}log/unicorn.stdout.log" 

# NOTE: You need this when using forking web servers!
after_fork do |server, worker|
  $con.close if $con
  $con = Mongo::Connection.new
  $db = $con['foo']
  STDERR << "FORKED #{server} #{worker}"
end

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
jmongo-1.1.5 test/load/unicorn/unicorn.rb.template
jmongo-1.1.4 test/load/unicorn/unicorn.rb.template
jmongo-1.1.3 test/load/unicorn/unicorn.rb.template
jmongo-1.1.2 test/load/unicorn/unicorn.rb.template
jmongo-1.1.1 test/load/unicorn/unicorn.rb.template
jmongo-1.1.0 test/load/unicorn/unicorn.rb.template
vanity-1.7.1 vendor/ruby/1.9.1/gems/mongo-1.3.1/test/load/unicorn/unicorn.rb
mongo-1.3.1 test/load/unicorn/unicorn.rb
mongo-1.3.0 test/load/unicorn/unicorn.rb
mongo-1.2.2 test/load/unicorn/unicorn.rb
mongo-1.2.1 test/load/unicorn/unicorn.rb