mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2025-02-28 16:31:44 -05:00
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:
commit
9ffb535bda
2
Rakefile
2
Rakefile
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user