为什么Heroku从Cloud9推出失败?(Why is Heroku push failing from Cloud9?)

编程入门 行业动态 更新时间:2024-10-20 07:53:32
为什么Heroku从Cloud9推出失败?(Why is Heroku push failing from Cloud9?)

我通过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

I signed in to Heroku through my Rails app but when I go to push, I get this error:

-----> 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

I can't find this error in my 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

最满意答案

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

The error message states that there's an extra end at line 63. If you have removed it from your Gemfile, make sure to commit your changes then try to push again.

更多推荐

本文发布于:2023-08-05 21:45:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1440986.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Heroku   failing   push

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!