Skip to content

Instantly share code, notes, and snippets.

@teeparham
Created February 15, 2011 01:22
Show Gist options
  • Save teeparham/826926 to your computer and use it in GitHub Desktop.
Save teeparham/826926 to your computer and use it in GitHub Desktop.
Capistrano task to GET site after deploy
task :ensure_alive do
puts "GET #{find_servers.first}:"
system("curl -silent http://#{find_servers.first} > /dev/null")
end
after "deploy", "ensure_alive"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment