首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >eb部署总是失败

eb部署总是失败
EN

Stack Overflow用户
提问于 2015-08-09 23:58:10
回答 1查看 389关注 0票数 1

我已经在amazon elastic beanstalk上创建了一个ruby env,但是当我尝试使用eb deploy从命令行部署我的rails应用程序时,我得到了这个错误:

代码语言:javascript
复制
  Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
  installing your bundle as root will break this application for all non-root
  users on this machine.
  You need to install git to be able to use gems from git repositories. For help
  installing git, please refer to GitHub's tutorial at
  https://help.github.com/articles/set-up-git (Executor::NonZeroExitStatus)


[2015-08-09T15:50:38.513Z] INFO  [4217]  - [CMD-AppDeploy/AppDeployStage0/AppDeployPreHook/10_bundle_install.sh] : Activity failed.
[2015-08-09T15:50:38.513Z] INFO  [4217]  - [CMD-AppDeploy/AppDeployStage0/AppDeployPreHook] : Activity failed.
[2015-08-09T15:50:38.513Z] INFO  [4217]  - [CMD-AppDeploy/AppDeployStage0] : Activity failed.
[2015-08-09T15:50:38.514Z] INFO  [4217]  - [CMD-AppDeploy] : Completed activity. Result:
  Command CMD-AppDeploy failed.

那么,我应该直接在amazon实例bash上安装git吗?这会影响自动缩放吗?

EN

回答 1

Stack Overflow用户

发布于 2016-01-20 01:20:39

我不知道你是否修复了这个问题,但你需要告诉Elastic Beanstalk安装git

在项目的根目录中,添加一个名为.ebextensions的文件夹。

在该文件夹中创建一个名为(类似于) install_git.config ( .config很重要)的文件。

将以下行添加到该文件:

代码语言:javascript
复制
packages:
  yum:
    git: []

然后重新部署您的应用程序,您应该不会再看到该错误。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31906095

复制
相关文章

相似问题

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