cap deploy:setup hangs?

醉酒当歌 提交于 2019-12-06 10:14:39

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!