【问题标题】:Capistrano on FreeBSD: GIT_ASKPASS=/bin/echo: Command not foundFreeBSD 上的 Capistrano:GIT_ASKPASS=/bin/echo:找不到命令
【发布时间】:2015-07-21 09:44:36
【问题描述】:

我正在使用 Capistrano 将 PHP 应用程序自动部署到 FreeBSD 服务器。配置后,我遇到了这个错误:

 [703e9962]        GIT_ASKPASS=/bin/echo: Command not found.
 (Backtrace restricted to imported tasks)
 cap aborted!
 SSHKit::Runner::ExecuteError: Exception while executing as user@example-domain.com: git exit status: 1
 git stdout: Nothing written
 git stderr: GIT_ASKPASS=/bin/echo: Command not found.

SSHKit::Command::Failed: git 退出状态:1 git stdout:没有写 git stderr: GIT_ASKPASS=/bin/echo: 找不到命令。

我在上面的日志中用“user@example-domain.com”替换了真实账户信息。 任何帮助将不胜感激。

【问题讨论】:

标签: capistrano


【解决方案1】:

FreeBSD 的默认 shell 是 tcsh,它将无法执行该命令。如果您将其更改为 bash,它将起作用:

sudo  chsh -s /usr/local/bin/bash user

并确保安装了 bash。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-06-14
    • 2018-02-18
    • 1970-01-01
    • 2016-11-17
    • 2012-10-31
    • 2021-11-13
    • 2019-04-19
    • 2013-05-16
    相关资源
    最近更新 更多