【问题标题】:Elastic Beanstalk git clone error on the gem `searcher`gem `searcher` 上的 Elastic Beanstalk git clone 错误
【发布时间】:2017-05-08 22:11:14
【问题描述】:

现在我正在尝试通过 Elastic Beanstalk 将 Web 应用程序部署到 AWS。但是当我部署时,由于 gem searcher 而发生 git clone 错误。这个 gem 不在 rubygems.org 中,而是在 github 中,因为它没有经过足够的测试,因为 gem 的作者说她没有故意将其公开。

gem 在我本地的 ubuntu 环境中安装没有问题。但是在部署时没有安装它,导致整个部署失败。

下面是写在 Gemfile 上的那一行。

gem "searcher", github: "radar/searcher"

以下是我通过 Beanstalk CLI 部署到 AWS 时出现的错误消息的一部分。

ERROR: [Instance: i-088606db918d932ff] Command failed on instance. Return code: 11 Output: (TRUNCATED)...und Git error: command `git clone 'git://github.com/radar/searcher.git'

正如我所说,gem 安装得很好,在我的本地 ubuntu 机器上使用 git clone 也没有问题,如下图所示。

【问题讨论】:

    标签: ruby-on-rails git rubygems amazon-elastic-beanstalk web-deployment


    【解决方案1】:

    我知道这有点晚了,但我通过在我的 EC2 实例上安装 git 解决了这个问题。

    只需 ssh 进入您的 EC2 实例并输入以下内容:

    sudo yum install git
    

    这应该有望解决它。

    【讨论】:

    猜你喜欢
    • 2017-05-30
    • 2015-04-06
    • 2017-07-10
    • 2016-11-08
    • 2015-07-21
    • 2016-02-10
    • 2018-08-17
    • 1970-01-01
    • 2015-07-27
    相关资源
    最近更新 更多