【发布时间】:2014-11-11 06:53:37
【问题描述】:
目前,我使用 capistrano3 通过现有的 ssh 密钥 (XXXXX.pem) 将我的 rails 应用程序部署到 AWS 我已经完成了 AWS 服务器设置(例如:ruby、rails、sqlite3 安装和 ..etc) 但是,我遇到了一些我无法弄清楚的问题。 首先,我使用 $ cap install 来生成 deploy.rb ...等。 在 config/deploy.rb =>
https://github.com/Gtar69/games/blob/master/config/deploy.rb
在 config/deploy/staging.rb 中
https://github.com/Gtar69/games/blob/master/config/deploy/staging.rb
但是,当我尝试 $ cap staging deploy 到 AWS 时,它显示
INFO[6b5414be] Running /usr/bin/env mkdir -p /tmp/GameStore/ on 54.241.249.27
DEBUG[6b5414be] Command: /usr/bin/env mkdir -p /tmp/GameStore/
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing on host 54.241.249.27: Authentication failed for user ubuntu@54.241.249.27
/home/chris/.rvm/gems/ruby-2.0.0-p481/gems/net-ssh-2.9.1/lib/net/ssh.rb:219:in `start'
/home/chris/.rvm/gems/ruby-2.0.0-p481/gems/sshkit-1.5.1/lib/sshkit/backends/connection_pool.rb:50:in `call'
/home/chris/.rvm/gems/ruby-2.0.0-p481/gems/sshkit-1.5.1/lib/sshkit/backends/connection_pool.rb:50:in
有人可以帮忙吗? 谢谢 !
【问题讨论】:
标签: ruby-on-rails ruby-on-rails-3 amazon-web-services ssh capistrano3