[我正在尝试使用https://gorails.com/deploy/ubuntu/18.04中的步骤在线部署Rails站点,但是当我运行cap production deploy
时,我收到了,请问如何解决该问题,我正在使用AWS Cloud 9?>
[email protected]'s password:
00:00 git: wrapper
01 mkdir -p /tmp
✔ 01 [email protected] 0.158s
Uploading /tmp/git-ssh-young-production-ubuntu.sh 100.0%
02 chmod 700 /tmp/git-ssh-young-production-ubuntu.sh
✔ 02 [email protected] 0.156s
00:00 git:check
01 git ls-remote [email protected]:oomis/young.git HEAD
01 Warning: Permanently added the RSA host key for IP address '140.82.113.4' to the list of known hosts.
01 [email protected]: Permission denied (publickey).
01 fatal: Could not read from remote repository.
01
01 Please make sure you have the correct access rights
01 and the repository exists.
#<Thread:0x0000564f38e1cb38@/home/ubuntu/.rvm/gems/ruby-2.6.3/gems/sshkit-1.20.0/lib/sshkit/runners/parallel.rb:10 run> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
13: from /home/ubuntu/.rvm/gems/ruby-2.6.3/gems/sshkit-1.20.0/lib/sshkit/runners/parallel.rb:12:in `block (2 levels) in execute'
.```
I expect it to deploy my app, how can I fix this, please
我正在尝试使用https://gorails.com/deploy/ubuntu/18.04中的步骤在线部署Rails站点,但是当我进行生产上限部署时,会收到我该怎么做以进行修复,我正在使用aws ...
这是由ssh键引起的。请参考此pagehttps://help.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh如果没有的话,如何生成一个。如果您已经有ssh,请从本地计算机终端添加ssh身份ssh-add ~/.ssh/id_rsa
。