Skip to content

Instantly share code, notes, and snippets.

@trevorturk
Created December 23, 2010 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trevorturk/752928 to your computer and use it in GitHub Desktop.
Save trevorturk/752928 to your computer and use it in GitHub Desktop.
# 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