当我尝试ssh到服务器时,我可以这样做,因为我的id_rsa.pub
密钥被添加到服务器中的授权密钥。
现在,当我尝试通过Capistrano将代码从我的本地项目文件夹部署到服务器时,服务器会要求输入密码。
如果我能够ssh并且无法部署到同一台服务器,我无法理解可能会出现什么问题。
$ cap deploy:setup
"no seed data"
triggering start callbacks for `deploy:setup'
* 13:42:18 == Currently executing `multistage:ensure'
*** Defaulting to `development'
* 13:42:18 == Currently executing `development'
* 13:42:18 == Currently executing `deploy:setup'
triggering before callbacks for `deploy:setup'
* 13:42:18 == Currently executing `db:configure_mongoid'
* executing "mkdir -p /home/deploy/apps/development/flyingbird/shared/config"
servers: ["dev1.noob.com", "176.9.24.217"]
Password:
答案 0 :(得分:0)
我遇到了这个问题,有staging.rb,development.rb文件在尝试在不同的环境中部署应用程序时覆盖了我的cap脚本凭据。