Skip to content

Instantly share code, notes, and snippets.

@maetl
Forked from peterc/deploy.rake
Created February 12, 2011 09:33
Show Gist options
  • Save maetl/823643 to your computer and use it in GitHub Desktop.
Save maetl/823643 to your computer and use it in GitHub Desktop.
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