Merge pull request #1205 from MrJoy/safer_rsync

Make RSync deployments a bit safer by making deletion of defunct files h...
This commit is contained in:
Parker Moore 2013-04-11 10:08:41 -07:00
commit 9ffb535bda
1 changed files with 1 additions and 1 deletions

View File

@ -382,7 +382,7 @@ task :rsync do
""
end
document_root = ensure_trailing_slash(configuration[:document_root])
ok_failed system("rsync -avze 'ssh -p #{configuration[:ssh_port]} #{ssh_key}' #{exclude} #{configuration[:rsync_args]} #{"--delete" unless !configuration[:rsync_delete]} #{ensure_trailing_slash(configuration[:destination])} #{configuration[:ssh_user]}:#{document_root}")
ok_failed system("rsync -avze 'ssh -p #{configuration[:ssh_port]} #{ssh_key}' #{exclude} #{configuration[:rsync_args]} #{"--delete-after" unless !configuration[:rsync_delete]} #{ensure_trailing_slash(configuration[:destination])} #{configuration[:ssh_user]}:#{document_root}")
end
desc "deploy public directory to github pages"