【问题标题】:Why is capistrano acting up like this?为什么capistrano会这样?
【发布时间】:2011-06-03 18:46:19
【问题描述】:

我的部署有问题

我运行 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

请帮忙

【问题讨论】:

  • 您能在此处发布到目前为止您为解决/诊断问题所做的尝试吗?

标签: ruby-on-rails ruby deployment capistrano


【解决方案1】:

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

http://help.github.com/troubleshooting-ssh/ (检查“SSH config”和“Permission denied (publickey)”部分)

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

基本上确保你有:

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

【讨论】:

    猜你喜欢
    • 2018-10-15
    • 2018-06-08
    • 2014-12-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多