1

So I run cap deploy to try and deploy to ec2, and get this issue:

 ** [ec2-54-200-24-60.us-west-2.compute.amazonaws.com :: out] * RVM has encountered a new or modified .rvmrc file in the current           *
 ** * directory, this is a shell script and therefore may contain any shell      *
 ** * commands.                                                                  *
 ** *                                                                            *
 ** * Examine the contents of this file carefully to be sure the contents are    *
 ** * safe before trusting it!                                                   *
 ** * Do you wish to trust '/var/www/highlandsfbart#/shared/cached-copy/.rvmrc'? *
 ** * Choose v[iew] below to view the contents                                   *
 ** [ec2-54-200-24-60.us-west-2.compute.amazonaws.com :: out] ******************************************************************************
 ** [ec2-54-200-24-60.us-west-2.compute.amazonaws.com :: out] y[es], n[o], v[iew], c[ancel]>

However, when I type y and press enter, it hangs and nothing happens. Same when i type v and enter.

I tried modifying the .rvmrc file in my (local) project folder as such, but this didn't do anything.

rvm_trust_rvmrcs_flag=1

I also tried adding this code to my deploy.rb, but still no luck:

namespace :rvm do
  desc 'Trust rvmrc file'
  task :trust_rvmrc do
    run "rvm rvmrc trust #{current_release}"
  end
end

after "deploy:update_code", "rvm:trust_rvmrc"

Any help would be appreciated.

4

1 回答 1

4

you need to run it on every server as user:

echo rvm_trust_rvmrcs_flag=1 | sudo tee -a /etc/rvmrc

or as root:

echo rvm_trust_rvmrcs_flag=1 >> /etc/rvmrc
于 2013-10-07T03:25:16.900 回答