不使用 sudo 时出现 Capistrano 错误/警告

发布于 2024-12-18 03:10:48 字数 301 浏览 2 评论 0原文

当我运行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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

与他有关 2024-12-25 03:10:48

我也收到了类似的消息:use_sudo, true。解决方案是将其添加到 ~/.caprc:(

default_run_options[:pty] = true

或者您可以插入 Capfile 或 config/deploy.rb)

您看到该消息的原因并不明显,但我希望上述技术至少能够阻止这些为您显示的消息。

I had a similar message with :use_sudo, true. The solution was to add this to ~/.caprc:

default_run_options[:pty] = true

(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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文