Ruby on rails 4 Capistrano git:检查失败的退出状态128
当我运行Ruby on rails 4 Capistrano git:检查失败的退出状态128,ruby-on-rails-4,capistrano,Ruby On Rails 4,Capistrano,当我运行capproduction git:check时得到了这个。(我拿出了我的真实ip地址和用户名) 下面是我的部署文件 set :user, 'foo' set :domain, '114.***.***.***' set :application, 'deepot' set :repo_url, 'foo@114.***.***.***:~/git/deepot.git' set :deploy_to, '/home/#{fetch(:user)}/local/#{fetch(:ap
capproduction git:check
时得到了这个。(我拿出了我的真实ip地址和用户名)
下面是我的部署文件
set :user, 'foo'
set :domain, '114.***.***.***'
set :application, 'deepot'
set :repo_url, 'foo@114.***.***.***:~/git/deepot.git'
set :deploy_to, '/home/#{fetch(:user)}/local/#{fetch(:application)}'
set :linked_files, %w{config/database.yml config/bmap.yml config/cloudinary.yml config/environments/development.rb config/environments/production.rb}
下面是我的作品
role :app, %w{foo@114.***.***.***}
role :web, %w{foo@114.***.***.***}
role :db, %w{foo@114.***.***.***}
server '114.***.***.***', user: 'foo', roles: %w{web app}, ssh_options: {keys: %w{/c/Users/Administrator/.ssh/id_rsa}, auth_methods: %w(publickey)}
我可以成功地ssh到我的foo@114.******.**
而不使用git bash输入任何密码。(我是Windows7机器,部署服务器是ubuntu 12.04)
任何帮助都将不胜感激。谢谢 >尝试生成一个新的私有/公钥PAR并为其提供密码。如果它工作,问题是你当前的密钥不使用一个口令。 尝试生成一个新的私有/公钥PAR,并为它提供一个密码。如果有效,问题是您当前的密钥没有使用密码短语
role :app, %w{foo@114.***.***.***}
role :web, %w{foo@114.***.***.***}
role :db, %w{foo@114.***.***.***}
server '114.***.***.***', user: 'foo', roles: %w{web app}, ssh_options: {keys: %w{/c/Users/Administrator/.ssh/id_rsa}, auth_methods: %w(publickey)}