Skip to content

Instantly share code, notes, and snippets.

@peterc
Created February 12, 2011 03:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save peterc/823475 to your computer and use it in GitHub Desktop.
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...
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
@defunkt
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