Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds "ssh_needs_tty" general parameter, and rsync copy option #45

Merged
merged 1 commit into from Mar 16, 2014

Conversation

drmikecrowe
Copy link

I ran into an issue where commands were failing due to an "stdin: is not a tty" messages from the host. To resolve, I added a general flag "ssh_needs_tty", which adds "-t" to the ssh command.

Additionally, when using rsync and a large set of files, I added an additional flag to the deployment options which first copies the prior release to the new release, then rsync's the new release.

deployment:
  .....
  strategy: rsync
  rsync: { copy: true }

Using this flag, my deployment goes from:

(snip)
Finished Magallanes

real    1m6.098s
user    0m5.440s
sys     0m0.724s

to this:

(snip)
Finished Magallanes

real    0m21.263s
user    0m2.032s
sys     0m0.484s

command
Adds deployment parameter "rsync: { copy: yes }" which copies the prior
release then rsync's (to increase speed)
andres-montanez added a commit that referenced this pull request Mar 16, 2014
Adds "ssh_needs_tty" general parameter, and rsync copy option
@andres-montanez andres-montanez merged commit 8b43a13 into andres-montanez:master Mar 16, 2014
@andres-montanez
Copy link
Owner

Great improvement!
Thanks!

andres-montanez added a commit that referenced this pull request Mar 16, 2014
- Issue #45 - Adds "ssh_needs_tty" which appends "-t" to the ssh.
- Issue #45 - Rsync is incremental if there are previous releases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants