首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为什么Heroku推送Cloud9失败了?

为什么Heroku推送Cloud9失败了?
EN

Stack Overflow用户
提问于 2017-03-24 21:24:06
回答 1查看 29关注 0票数 0

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

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

我在我的can文件中找不到这个错误:

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

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-03-24 21:47:24

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

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

https://stackoverflow.com/questions/43009376

复制
相关文章

相似问题

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