Created
February 15, 2011 01:22
-
-
Save teeparham/826926 to your computer and use it in GitHub Desktop.
Capistrano task to GET site after deploy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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