Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
I can't be bothered with all of these fancy deployment systems. This works for me! Lazzzzy...
desc "Deploy site"
task :deploy do
sh %{git push origin master}
sh %{ssh server "cd /var/www/;git pull;bundle check || bundle;rake db:migrate;touch tmp/restart.txt;chown -R app:app *"}
Copy link

defunkt commented Mar 31, 2011

Great stuff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment