Skip to content

Instantly share code, notes, and snippets.

@toekneestuck
toekneestuck / Rakefile
Created June 8, 2012 14:42 — forked from fstrube/Rakefile
Rake tasks for deploying a web app via rsync, and comparing local / remote file changes
CONFIG = {
## -- Rsync Deploy config -- ##
# Be sure you have setup public / private key authentication
:ssh_host => "user@hostname", # The hostname can be an alias in ~/.ssh/config
:ssh_port => nil, # Default - use ~/.ssh/config
:document_root => "/var/www", # Remote document root
:rsync_delete => true, # Whether or not to delete remote files
:deploy_default => "rsync", # Not used
:restart_apache => nil, # Remote command to restart apache