Skip to content

Commit

Permalink
Merge pull request imathis#844 from jsvensson/rsyncargs
Browse files Browse the repository at this point in the history
Rakefile option for any additional rsync arguments
  • Loading branch information
imathis committed Dec 20, 2012
2 parents c9f820f + 916b87a commit 48d3e75
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Rakefile
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 48d3e75

Please sign in to comment.