Created
December 23, 2010 12:49
-
-
Save trevorturk/752928 to your computer and use it in GitHub Desktop.
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
# lib/tasks/deploy.rb | |
desc "deploy to heroku and notify hoptoad" | |
task :deploy => :environment do | |
puts "deploying to heroku..." | |
%x[git push heroku master] | |
puts "notifying hoptoad..." | |
rev = %x[git log master -n 1 --pretty=format:%H] | |
%x[rake hoptoad:deploy TO=production REVISION=#{rev}] | |
puts "done..." | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment