【发布时间】:2014-07-24 12:17:22
【问题描述】:
我的 deploy.rb 文件是
lock '3.2.1'
set :application, 'my_app'
set :repo_url, 'path_to_git_repo.git'
set :deploy_user, 'root'
set :deploy_to, '/var/www'
set :branch, 'master-final_code'
set :scm, :git
set :deploy_via, :copy
set :format, :pretty
set :stages, ["staging"]
set :log_level, :debug
set :pty, true
我的 staging.rb 是
set :stage, :staging
role :app, %w{root@my_ip_add}
%w{[root]}
server 'my_ip_add', user: 'root', roles: %w{app}
set :ssh_options, {
forward_agent: false,
auth_methods: %w(password),
password: 'my_pass',
user: 'root'
}
得到错误:
Permission denied (publickey,keyboard-interactive).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
在这种情况下我该怎么办?我应该编辑配置吗? deploy.rb 还是 staging.rb?还是ssh key有问题?
【问题讨论】:
标签: ruby-on-rails ruby deployment capistrano3