因此,我运行来尝试部署到ec2,并得到以下问题:
** [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]>但是,当我键入y并按enter键时,它会挂起,什么也不会发生。当我键入v并输入时也是如此。
我试着修改(本地)项目文件夹中的.rvmrc文件,但没有做任何事情。
rvm_trust_rvmrcs_flag=1我还尝试将此代码添加到我的deploy.rb中,但仍然没有结果:
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"任何帮助都将不胜感激。
发布于 2013-10-07 03:25:16
您需要以用户身份在每个服务器上运行它:
echo rvm_trust_rvmrcs_flag=1 | sudo tee -a /etc/rvmrc或作为根:
echo rvm_trust_rvmrcs_flag=1 >> /etc/rvmrchttps://stackoverflow.com/questions/19216129
复制相似问题