簡體   English   中英

為什么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 

錯誤消息指出,在第63行有一個額外的end 。如果您已將其從Gemfile中刪除,請確保提交更改,然后嘗試再次推送。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM