<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -13,7 +13,7 @@ God.watch do |w|
   restart_if_resource_hog(w, :memory_usage =&gt; 250.megabytes) do |restart|
     restart.condition(:http_response_code) do |c|
       c.host = '127.0.0.1'
-      c.port = in_role?(:proxy) ? 81 : 80
+      c.port = lambda { in_role?(:proxy) ? 81 : 80 }
       c.path = '/nginx_status'
       c.code_is_not = 200
       c.timeout = 5.seconds</diff>
      <filename>server/files/etc/god/web.god</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>cb94e3a1978f2ec832fbfbefb66dc4331ae38e5d</id>
    </parent>
  </parents>
  <author>
    <name>Paul Dowman</name>
    <email>paul@pauldowman.com</email>
  </author>
  <url>http://github.com/pauldowman/ec2onrails/commit/aa7e7760c0c4b91681305a19a66018c742db703b</url>
  <id>aa7e7760c0c4b91681305a19a66018c742db703b</id>
  <committed-date>2009-09-16T07:29:48-07:00</committed-date>
  <authored-date>2009-09-16T07:29:48-07:00</authored-date>
  <message>Evaluate in_role? every time it's used when deciding which port to use to monitor nginx.</message>
  <tree>fc59f8fdf3fefbcaa160a8d963b2228ac7cc06dc</tree>
  <committer>
    <name>Paul Dowman</name>
    <email>paul@pauldowman.com</email>
  </committer>
</commit>
