这是我的情况:我有这个rails应用程序,我有"capified",我正在尝试使用capistrano部署到我的Ubuntu Cloud 服务器上 . 我一直关注这个指南 - > http://robmclarty.com/blog/how-to-deploy-a-rails-4-app-with-git-and-capistrano
当我运行 $ cap production deploy
时,上限中止,我得到结果 Net::SSH::AuthenticationFailed
.
我的猜测:我的服务器无法访问我的bitbucket回购?
好吧,我已经在我的服务器上生成了一个ssh密钥,在我的bitbucket帐户中添加了密钥,并且还完成了 git ls-remote git@bitbucket.org:my-username/my-repo.git
.
那我在这里错过了什么?
这是我的config / deploy.rb:https://gist.github.com/anonymous/7707266
1 回答
所以我的开发计算机无法访问 生产环境 服务器 . 事实证明我已将行
server "<server-ip>", user: "depoy-user", roles: %w{web app}
放在config / deploy.rb中 . 将它移动到config / deploy / production.rb解决了我的问题 . Facepalms,facepalms到处都是 .