不使用 sudo 时出现 Capistrano 错误/警告
当我运行deploy:setup和deploy:update时,我看到嵌入在输出中(在多个地方)
*** [err :: domain.com] sudo
*** [err :: domain.com] :
*** [err :: domain.com] no tty present and no askpass program specified
*** [err :: domain.com]
但是,由于我有:use_sudo, false
,一切都部署得很好。
怎么了?
When I run deploy:setup and deploy:update I see embedded in the output (in multiple places)
*** [err :: domain.com] sudo
*** [err :: domain.com] :
*** [err :: domain.com] no tty present and no askpass program specified
*** [err :: domain.com]
Yet, everything deploys fine since I have :use_sudo, false
.
What's wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我也收到了类似的消息:use_sudo, true。解决方案是将其添加到 ~/.caprc:(
或者您可以插入 Capfile 或 config/deploy.rb)
您看到该消息的原因并不明显,但我希望上述技术至少能够阻止这些为您显示的消息。
I had a similar message with :use_sudo, true. The solution was to add this to ~/.caprc:
(Alternatively you can insert in the Capfile or config/deploy.rb)
It's not obvious why you're seeing the message, but I would hope the above technique would at least stop those messages appearing for you.