Pull: rollback on rsync failure and support gateway variable#12
Open
mcary wants to merge 3 commits into
Open
Conversation
When rsync fails, I'm getting a deploy that looks like it went fine except for an inconspicuous message saying that rsync failed and a production deployment that's still on the old code version. Sometimes I don't notice right away that the new code is not actually live, and this is a big problem. I'd like to see a clear error message when rsync fails. Raise an exception of rsync fails to any of the servers receiving a code update.
When running rsync, the RsyncWithRemoteCache strategy doesn't heed Capistrano's :gateway parameter, which says to SSH to the server named by that parameter before connecting to the target server. Add support for a gateway by using the ProxyCommand SSH directive. Assume netcat is installed as nc on the target system.
|
Hi! Is this feature planned to be merged sometime ? Are there any other alternatives to this ? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I've made two changes to capistrano_rsync_with_remote_cache:
I've added tests for each. Please let me know if there is anything else you require for acceptance of these changes.
Branches:
rollback-on-rsync-failure
add-gateway-support
Thanks!