http://www.sitepoint.com/deploy-your-rails-app-to-aws/
我正在按照本教程将我的Rails应用程序部署到Amazon EC2,直到我告诉我这样做:
cap production deploy
Run Code Online (Sandbox Code Playgroud)
当我在我的代码所在的文件夹中键入它时,我收到此错误:
** Invoke production (first_time)
** Execute production
** Invoke load:defaults (first_time)
** Execute load:defaults
** Invoke bundler:map_bins (first_time)
** Execute bundler:map_bins
** Invoke rvm:hook (first_time)
** Execute rvm:hook
** Invoke rvm:check (first_time)
** Execute rvm:check
DEBUG [be2a201f] Running ~/.rvm/bin/rvm version as deploy@54.152.90.79
DEBUG [be2a201f] Command: ~/.rvm/bin/rvm version
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as deploy@54.152.90.79: Authentication failed for user deploy@54.152.90.79
/Users/Minling/.rvm/gems/ruby-2.2.1/gems/sshkit-1.7.1/lib/sshkit/runners/parallel.rb:16:in `rescue in block (2 levels) in execute'
/Users/Minling/.rvm/gems/ruby-2.2.1/gems/sshkit-1.7.1/lib/sshkit/runners/parallel.rb:12:in `block (2 levels) in …Run Code Online (Sandbox Code Playgroud)