我得到这样的问题。
$ cap deploy:setup
* executing `deploy:setup'
* executing "sudo -p 'XXXXXXXXX' mkdir -p /home/railsu/bianbian.com /home/railsu/bianbian.com/releases /home/railsu/bianbian.com/shared /home/railsu/bianbian.com/shared/system /home/railsu/bianbian.com/shared/log /home/railsu/bianbian.com/shared/pids"
servers: ["74.207.243.205"]
connection failed for: 74.207.243.205 (Net::SSH::Disconnect: connection closed by remote host)
我已经将我的计算机的公钥添加到了 git 中。
/.ssh/authorized_keys
在 deploy.rb
set :application, "mini-saler"
set :repository, "git@74.207.243.205:mini-saler.git"
set :scm, :git
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`
role :web, "74.207.243.205" # Your HTTP server, Apache/etc
role :app, "74.207.243.205" # This may be the same as your `Web` server
set :deploy_to, "/home/railsu/bianbian.com"
# if you want to clean up old releases on each deploy uncomment this:
# after "deploy:restart", "deploy:cleanup"
set :user, "railsu"
set :password, "XXXXXXXXXX"
set :sudo_prompt, "XXXXXXXXXX"
我的 VPS 是 Linode。
我很确定这是错误的地方。任何想法这是什么样的错误?
感谢大家!!
我在这里看到几个特殊的错误: