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
# I use this Capistrano task so I don't have manually run 'git push' before 'cap | |
# deploy'. It includes some error checking to make sure I'm on the right branch | |
# (master) and haven't got any uncommitted changes. | |
# Simply add the code below to config/deploy.rb, then run 'cap deploy:push' to | |
# test it, and 'cap deploy' to deploy as usual. | |
namespace :deploy do | |
desc "Push local changes to Git repository" | |
task :push do |