Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/64.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 使用Bitbucket存储库中的Capistrano 3.1将ROR应用程序部署到Linode.com_Ruby On Rails_Deployment_Bitbucket_Linode - Fatal编程技术网

Ruby on rails 使用Bitbucket存储库中的Capistrano 3.1将ROR应用程序部署到Linode.com

Ruby on rails 使用Bitbucket存储库中的Capistrano 3.1将ROR应用程序部署到Linode.com,ruby-on-rails,deployment,bitbucket,linode,Ruby On Rails,Deployment,Bitbucket,Linode,有一个ROR应用程序,托管在Linode.com上,源代码托管在Bitbucket.org上。使用Capistrano 3.1部署我的ROR应用程序。当我执行以下命令时: cap生产git:检查 一切都很好,可以建立连接,但当我尝试打电话时 cap生产部署 从原点提取时返回错误 Command: cd /home/user/app/repo && /usr/bin/env git remote update Fetching origin Permission denied (p

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

cap生产git:检查

一切都很好,可以建立连接,但当我尝试打电话时

cap生产部署

从原点提取时返回错误

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问题,感谢creator!干杯