【问题标题】:Why is Heroku push failing from Cloud9?为什么从 Cloud9 推送 Heroku 失败?
【发布时间】:2017-08-17 23:23:45
【问题描述】:

我通过我的 Rails 应用程序登录 Heroku,但是当我去推送时,我收到了这个错误:

    -----> Ruby app detected
    -----> Compiling Ruby/Rails
   sh: 1: Gemfile: not found
   !
   !     There was an error parsing your Gemfile, we cannot continue
   !     
   !     [!] There was an error parsing `Gemfile`: syntax error, unexpected
          keyword_end, expecting end-of-input. Bundler cannot continue.
   !     
   !     #  from /tmp/build_68de181abe890ef0e6c625b9af15fb4a/Gemfile:63
   !     #  -------------------------------------------
   !     #    end
   !     >  end
   !     #
   !     #  -------------------------------------------
   !
   !     Push rejected, failed to compile Ruby app.
   !     Push failed

我在我的 gemfile 中找不到这个错误:

  source 'https://rubygems.org'


  gem 'rails', '4.2.5'
 gem 'sass-rails', '~> 5.0'
 gem 'uglifier', '>= 1.3.0'
 gem 'coffee-rails', '~> 4.1.0'
 gem 'jquery-rails'
 gem 'turbolinks'
 gem 'jbuilder', '~> 2.0'
 gem 'sdoc', '~> 0.4.0', group: :doc
 gem 'bootstrap-sass', '~> 3.3', '>= 3.3.6'
 gem 'font-awesome-sass', '~> 4.5'
 gem 'bootstrap-sass-extras', '~> 0.0.2'
 gem 'devise', '~> 3.5', '>= 3.5.6'
 gem 'simple_form', '~> 3.2', '>= 3.2.1'
 gem 'will_paginate', '~> 3.1'
 gem 'will_paginate-bootstrap', '~> 1.0', '>= 1.0.1'


 group :development, :test do
  gem 'byebug'
 end

 group :development do
  gem 'web-console', '~> 2.0'
  gem 'spring'
  gem 'sqlite3'
 end

 group :production do
  gem 'rails_12factor', '~> 0.0.3'
  gem 'pg', '~> 0.18.4'
 end 

【问题讨论】:

    标签: ruby-on-rails ruby ruby-on-rails-4 heroku


    【解决方案1】:

    错误消息指出在第 63 行有一个额外的 end。如果您已将其从 Gemfile 中删除,请确保提交您的更改,然后再次尝试推送。

    【讨论】:

      猜你喜欢
      • 2021-03-02
      • 2021-12-30
      • 2016-02-21
      • 2020-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多