使用来自 Bitbucket 存储库的 Capistrano 3.1 将 ROR 应用程序部署到 Linode.com

Deploying ROR application to Linode.com using Capistrano 3.1 from Bitbucket repository

有 ROR 应用程序,托管在 Linode.com,源代码托管在 Bitbucket.org。为了部署我的 ROR 应用程序,使用了 Capistrano 3.1。当我执行以下命令时:

cap production git:check

一切正常,可以建立连接,但是当我尝试调用

cap production deploy

从源

获取时出现returns错误
Command: cd /home/user/app/repo && /usr/bin/env git remote update
Fetching origin
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
error: Could not fetch origin

非常感谢任何帮助。

解决了安装 SSH 客户端和服务器、设置安全密钥后的问题。非常实用,可用于诊断 SSH 问题 https://github.com/capistrano-plugins/capistrano-ssh-doctor 感谢创作者!干杯。