Skip to content

Instantly share code, notes, and snippets.

@mig
Created November 9, 2009 22:00
Show Gist options
  • Save mig/230310 to your computer and use it in GitHub Desktop.
Save mig/230310 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