Skip to content

Instantly share code, notes, and snippets.

View trevorh's full-sized avatar

Trevor Hart trevorh

View GitHub Profile
set :mongrel_rolling_restart_delay, 55
namespace :mongrel do
desc <<-DESC
Start mongrels in a loop, with a defer of [default] 30 seconds between each single mongrel restart. mongrel_rolling_restart_delay can be set to override the default.
DESC
task :rolling_restart, :roles => [:app], :except => {:mongrel => false} do
set(:restart_delay) { fetch(:mongrel_rolling_restart_delay, 30) }
run %{
<html>
<head>
</head>
<body>
<script type="text/javascript" src="http://www.json.org/json2.js"></script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">
var geocoder;