ruby on rails - Capistrano Cap Deploy issue with RVMRC -
so run cap deploy try , deploy ec2, , issue:
** [ec2-54-200-24-60.us-west-2.compute.amazonaws.com :: out] * rvm has encountered new or modified .rvmrc file in current * ** * directory, shell script , therefore may contain shell * ** * commands. * ** * * ** * examine contents of file sure contents * ** * safe before trusting it! * ** * wish trust '/var/www/highlandsfbart#/shared/cached-copy/.rvmrc'? * ** * choose v[iew] below view 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 type y , press enter, hangs , nothing happens. same when type v , enter.
i tried modifying .rvmrc file in (local) project folder such, didn't anything.
rvm_trust_rvmrcs_flag=1
i tried adding code deploy.rb, still no luck:
namespace :rvm desc 'trust rvmrc file' task :trust_rvmrc run "rvm rvmrc trust #{current_release}" end end after "deploy:update_code", "rvm:trust_rvmrc"
any appreciated.
you need run on every server user:
echo rvm_trust_rvmrcs_flag=1 | sudo tee -a /etc/rvmrc
or root:
echo rvm_trust_rvmrcs_flag=1 >> /etc/rvmrc
Comments
Post a Comment