帽部署:安装挂起? [英] cap deploy:setup hangs?

查看:116
本文介绍了帽部署:安装挂起?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



Cap部署:安装程序执行此操作

  [109.etc] env RAILS_ENV = production sh -c'git clone git@109.etc:srv / drawings.git / srv / painting / current'
** [out :: 109.etc] /srv/paintings/current/.git/
** [out :: 109.etc]中的初始化空Git仓库主机'109.etc(109 .etc)'不能建立。
** [out :: 109.etc] RSA密钥指纹是e9:af:d6:d3:0e:f5:de:a3:4a:31:6e:8e:4a:c7:b7:ee
** [out :: 109.etc]您确定要继续连接(是/否)?

*当我输入yes或y它只是挂起似乎没有发生...
*已经尝试了 - 在帽子部署之后被破坏:设置可能是错的?

解决方案

Capistrano本质上是非交互式;如果这样的提示弹出,你不能只告诉它是,不幸的是,由于您输入的命令不会发送到远程主机。您必须手动执行是。



要解决此问题,请将主机的密钥添加到该用户的known_hosts文件。所以,SSH进入任何机器正在部署,su进入该用户,并尝试SSHing到 109.etc 。您将收到相同的警告提示,您将能够输入是,这时候它将会工作。之后, cap部署按照正常情况,您将不再收到此消息。


Im having setup a empty git repo bare on the server side and everything setup.

Cap deploy:setup does this

    [109.etc] env RAILS_ENV=production sh -c 'git clone git@109.etc:srv/paintings.git /srv/paintings/current'
 ** [out :: 109.etc] Initialized empty Git repository in /srv/paintings/current/.git/
 ** [out :: 109.etc] The authenticity of host '109.etc (109.etc)' can't be established.
 ** [out :: 109.etc] RSA key fingerprint is e9:af:d6:d3:0e:f5:de:a3:4a:31:6e:8e:4a:c7:b7:ee.
 ** [out :: 109.etc] Are you sure you want to continue connecting (yes/no)?

*When I type yes or y it just "hangs" nothing seem to happen... * already tried --debug after the cap deploy:setup what could be wrong?

解决方案

Capistrano is essentially non-interactive; if a prompt like this pops up you can't just tell it "yes", unfortunately, since commands you type in aren't sent to the remote host. You'll have to do the "yes"-ing manually.

To get around this problem, add the host's key to the known_hosts file for that user. So, SSH into whatever machine is doing the deploy, su into that user, and try SSHing into 109.etc. You'll receive the same warning prompt and you'll be able to enter "yes" in, and this time it'll work. Afterwards, cap deploy as per normal and you won't receive this message anymore.

这篇关于帽部署:安装挂起?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆