configurator: update and modernize examples
commit3c1449df986387f6d812a97adf5f8fa47c28c891
authorEric Wong <normalperson@yhbt.net>
Mon, 28 Sep 2009 07:03:46 +0000 (28 00:03 -0700)
committerEric Wong <normalperson@yhbt.net>
Mon, 28 Sep 2009 07:03:46 +0000 (28 00:03 -0700)
treebc50475e3e44058837fa9125c41a333d16d80b7a
parent762db4854c06196b8941fe9fb303280429fe4cdc
configurator: update and modernize examples

* Use the new :tries and :default parameters for listen()
  instead of the ugly and less-effective "rescue nil"

* ActiveRecord connection management examples for hooks when
  using for "preload_app true"

* combine "preload_app true" example with REE COW-friendly
  optimization for memory savings

Some of these are based on Chris Wanstrath's configuration
posted here: http://gist.github.com/189623
lib/unicorn/configurator.rb