diff options
author | Brandon Mathis <brandon@imathis.com> | 2012-12-19 22:13:04 -0800 |
---|---|---|
committer | Brandon Mathis <brandon@imathis.com> | 2012-12-19 22:13:04 -0800 |
commit | 48d3e75ff5d3468369ca8104379b870f7cf600b1 (patch) | |
tree | 4c228689b2d181230bb9366a9fde754a2592dfea | |
parent | c9f820f3ef6353e5b337153311042d1a7184ad75 (diff) | |
parent | 916b87a5457e68514c95a1e5f8a0eff324bed9e8 (diff) | |
download | my_new_personal_website-48d3e75ff5d3468369ca8104379b870f7cf600b1.tar.xz my_new_personal_website-48d3e75ff5d3468369ca8104379b870f7cf600b1.zip |
Merge pull request #844 from jsvensson/rsyncargs
Rakefile option for any additional rsync arguments
Diffstat (limited to '')
-rw-r--r-- | Rakefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -8,6 +8,7 @@ ssh_user = "user@domain.com" ssh_port = "22" document_root = "~/website.com/" rsync_delete = false +rsync_args = "" # Any extra arguments to pass to rsync deploy_default = "rsync" # This will be configured for you when you run config_deploy @@ -237,7 +238,7 @@ task :rsync do exclude = "--exclude-from '#{File.expand_path('./rsync-exclude')}'" end puts "## Deploying website via Rsync" - ok_failed system("rsync -avze 'ssh -p #{ssh_port}' #{exclude} #{"--delete" unless rsync_delete == false} #{public_dir}/ #{ssh_user}:#{document_root}") + ok_failed system("rsync -avze 'ssh -p #{ssh_port}' #{exclude} #{rsync_args} #{"--delete" unless rsync_delete == false} #{public_dir}/ #{ssh_user}:#{document_root}") end desc "deploy public directory to github pages" |