gpt4 book ai didi

ruby-on-rails - 为什么 Capistrano 会这样?

转载 作者:数据小太阳 更新时间:2023-10-29 07:04:05 25 4
gpt4 key购买 nike

我的部署有问题

我运行了 cap deploy 并得到了这个

 Warning: Permanently added 'github.com,207.97.227.239' (RSA) to the list of known hosts.
** [174.143.150.79 :: out] Permission denied (publickey).
** fatal: The remote end hung up unexpectedly
command finished
*** [deploy:update_code] rolling back
* executing "rm -rf /home/deploy/transprint/releases/20110105034446; true"
servers: ["174.143.150.79"]
[174.143.150.79] executing command

这是我的 deploy.rb

set :application, "transprint"
set :domain, "174.149.150.79"
set :user, "deploy"
set :use_sudo, false
set :scm, :git
set :deploy_via, :remote_cache

set :app_path, "production"
set :rails_env, 'production'


set :repository, "git@github.com:myname/something.git"
set :scm_username, 'deploy'

set :deploy_to, "/home/deploy/#{application}"

role :app, domain
role :web, domain
role :db, domain, :primary => true

请帮忙

最佳答案

Capistrano 正在向您的服务器发送命令,以“部署”用户身份运行它们,其中一个命令正在尝试连接到 github。请查看:

http://help.github.com/troubleshooting-ssh/(检查“SSH 配置”和“权限被拒绝(公钥)”部分)

http://help.github.com/linux-key-setup/

基本上确保你有:

  • 一个github账号
  • 安装在 174.143.150.79 上的 SSH key
  • 在您的 github 帐户配置文件中设置 SSH 公钥

关于ruby-on-rails - 为什么 Capistrano 会这样?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4600465/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com