2

当我尝试 ssh 到服务器时,我可以这样做,因为我的id_rsa.pub密钥已添加到服务器中的授权密钥中。

现在,当我尝试通过 Capistrano 将代码从本地项目文件夹部署到服务器时,服务器会要求输入密码。

如果我能够 ssh 并且无法部署到同一台服务器,我无法理解可能是什么问题。

$上限部署:设置

"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: 
4

1 回答 1

0

我遇到了问题,每当尝试在不同的环境中部署应用程序时,staging.rb、development.rb 文件都会覆盖我的 cap 脚本凭据。

于 2012-06-24T10:58:37.567 回答