首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >与RVMRC有关的卡皮拉诺帽部署问题

与RVMRC有关的卡皮拉诺帽部署问题
EN

Stack Overflow用户
提问于 2013-10-07 02:09:25
回答 1查看 255关注 0票数 1

因此,我运行来尝试部署到ec2,并得到以下问题:

代码语言:javascript
复制
 ** [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文件,但没有做任何事情。

代码语言:javascript
复制
rvm_trust_rvmrcs_flag=1

我还尝试将此代码添加到我的deploy.rb中,但仍然没有结果:

代码语言:javascript
复制
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"

任何帮助都将不胜感激。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-10-07 03:25:16

您需要以用户身份在每个服务器上运行它:

代码语言:javascript
复制
echo rvm_trust_rvmrcs_flag=1 | sudo tee -a /etc/rvmrc

或作为根:

代码语言:javascript
复制
echo rvm_trust_rvmrcs_flag=1 >> /etc/rvmrc
票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19216129

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档