Skip to content

Instantly share code, notes, and snippets.

@ebratb
Forked from mig/deploy.rake
Created June 21, 2012 04:52
Show Gist options
  • Save ebratb/2963893 to your computer and use it in GitHub Desktop.
Save ebratb/2963893 to your computer and use it in GitHub Desktop.
Hot capistrano replacement
task :deploy do
`rsync -rltvz -e ssh . deploy@hostname:/var/www/apps/my_app`
`ssh deploy@hostname touch /var/www/apps/my_app/public/restart.txt`
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment