Created
February 12, 2011 03:39
-
-
Save peterc/823475 to your computer and use it in GitHub Desktop.
I can't be bothered with all of these fancy deployment systems. This works for me! Lazzzzy...
This file contains hidden or 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
desc "Deploy site" | |
task :deploy do | |
sh %{git push origin master} | |
sh %{ssh server "cd /var/www/XXXXX.com;git pull;bundle check || bundle;rake db:migrate;touch tmp/restart.txt;chown -R app:app *"} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Great stuff.