Herokuで「git push heroku master」を実行した時のエラー
- 評価
- クリップ 0
- VIEW 1,956
Ruby on Railsの初心者です。
このたび、初めてアプリを作ったのですが、
Herokuで、
git push heroku masterを実行した時に、以下のようなエラーが出力されます。
ログにはヒントになるようなエラーがたくさんあるのですが、検索しても分かりません。
ベテランの方にとっては、容易な内容の質問かもしれなくて恐縮ですが、何卒ご教授いただければ幸いです。よろしくお願いします。
バージョン
ruby 2.1.3
Rails 4.2.5.1
git push heroku master を実行したログ
(中略)
remote: Bundle completed (33.88s)
remote: Cleaning up the bundler cache.
remote: sh: 2: Syntax error: Unterminated quoted string
remote: sh: 2: Syntax error: Unterminated quoted string
remote: !
remote: ! Could not detect rake tasks
remote: ! ensure you can run $ bundle exec rake -P
against your app
remote: ! and using the production group of your Gemfile.
remote: ! rake aborted!
remote: ! NameError: undefined local variable or method config' for main:Object
remote: ! /tmp/build_694b58ae37f5b583feea9bf5ec3bbef8/config/application.rb:27:in
<top (required)>'
remote: ! /tmp/build_694b58ae37f5b583feea9bf5ec3bbef8/Rakefile:4:in require'
remote: ! /tmp/build_694b58ae37f5b583feea9bf5ec3bbef8/Rakefile:4:in
<top (required)>'
remote: ! /tmp/build_694b58ae37f5b583feea9bf5ec3bbef8/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/rake_module.rb:28:in load'
remote: ! /tmp/build_694b58ae37f5b583feea9bf5ec3bbef8/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/rake_module.rb:28:in
load_rakefile'
remote: ! /tmp/build_694b58ae37f5b583feea9bf5ec3bbef8/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/application.rb:689:in raw_load_rakefile'
remote: ! /tmp/build_694b58ae37f5b583feea9bf5ec3bbef8/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/application.rb:94:in
block in load_rakefile'
remote: ! /tmp/build_694b58ae37f5b583feea9bf5ec3bbef8/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/application.rb:176:in standard_exception_handling'
remote: ! /tmp/build_694b58ae37f5b583feea9bf5ec3bbef8/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/application.rb:93:in
load_rakefile'
remote: ! /tmp/build_694b58ae37f5b583feea9bf5ec3bbef8/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/application.rb:77:in block in run'
remote: ! /tmp/build_694b58ae37f5b583feea9bf5ec3bbef8/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/application.rb:176:in
standard_exception_handling'
remote: ! /tmp/build_694b58ae37f5b583feea9bf5ec3bbef8/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/lib/rake/application.rb:75:in run'
remote: ! /tmp/build_694b58ae37f5b583feea9bf5ec3bbef8/vendor/bundle/ruby/2.2.0/gems/rake-11.1.2/bin/rake:33:in
<top (required)>'
remote: ! vendor/bundle/bin/rake:16:in load'
remote: ! vendor/bundle/bin/rake:16:in
<main>'
remote: !
remote: /app/tmp/buildpacks/ruby/lib/language_pack/helpers/rake_runner.rb:102:in load_rake_tasks!': Could not detect rake tasks (LanguagePack::Helpers::RakeRunner::CannotLoadRakefileError)
remote: ensure you can run
$ bundle exec rake -P against your app
remote: and using the production group of your Gemfile.
remote: rake aborted!
remote: NameError: undefined local variable or method
config' for main:Object
(中略)
remote:
remote: ! Push rejected, failed to compile Ruby app
remote:
remote: Verifying deploy...
remote:
remote: ! Push rejected to fast-beach-17193.
remote:
To https://git.heroku.com/fast-beach-17193.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/fast-beach-17193.git'
Gemfile
source 'https://rubygems.org'
gem 'rails', '4.2.5.1'
gem 'mysql2', '0.3.18'
gem 'sass-rails', '~> 4.0.2'
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
group :development, :test do
gem 'byebug'
end
group :development do
gem 'web-console', '~> 2.0'
gem 'spring'
end
gem 'pry-rails'
gem 'compass-rails','~> 2.0'
gem 'sprockets'
gem 'kaminari'
gem 'devise'
gem "paperclip"
gem 'jquery-turbolinks'
gem 'meta-tags'
group :production do
gem 'rails_12factor'
gem 'pg'
end
config/application.rb
equire File.expand_path('../boot', FILE)
require 'rails/all'
Bundler.require(*Rails.groups)
module XXXXX(プロジェクト名)
class Application < Rails::Application
config.active_record.raise_in_transactional_callbacks = true
end
end
-
気になる質問をクリップする
クリップした質問は、後からいつでもマイページで確認できます。
またクリップした質問に回答があった際、通知やメールを受け取ることができます。
クリップを取り消します
-
良い質問の評価を上げる
以下のような質問は評価を上げましょう
- 質問内容が明確
- 自分も答えを知りたい
- 質問者以外のユーザにも役立つ
評価が高い質問は、TOPページの「注目」タブのフィードに表示されやすくなります。
質問の評価を上げたことを取り消します
-
評価を下げられる数の上限に達しました
評価を下げることができません
- 1日5回まで評価を下げられます
- 1日に1ユーザに対して2回まで評価を下げられます
質問の評価を下げる
teratailでは下記のような質問を「具体的に困っていることがない質問」、「サイトポリシーに違反する質問」と定義し、推奨していません。
- プログラミングに関係のない質問
- やってほしいことだけを記載した丸投げの質問
- 問題・課題が含まれていない質問
- 意図的に内容が抹消された質問
- 過去に投稿した質問と同じ内容の質問
- 広告と受け取られるような投稿
評価が下がると、TOPページの「アクティブ」「注目」タブのフィードに表示されにくくなります。
質問の評価を下げたことを取り消します
この機能は開放されていません
評価を下げる条件を満たしてません
質問の評価を下げる機能の利用条件
この機能を利用するためには、以下の事項を行う必要があります。
- 質問回答など一定の行動
-
メールアドレスの認証
メールアドレスの認証
-
質問評価に関するヘルプページの閲覧
質問評価に関するヘルプページの閲覧
check解決した方法
0
なぜだか分からないのですが、再度デプロイにした時に、stylesheetのCSSファイルに文法エラーがあると表示され、かな文字の空白を削除したら、直りました。
お騒がせしました。
投稿
-
回答の評価を上げる
以下のような回答は評価を上げましょう
- 正しい回答
- わかりやすい回答
- ためになる回答
評価が高い回答ほどページの上位に表示されます。
-
回答の評価を下げる
下記のような回答は推奨されていません。
- 間違っている回答
- 質問の回答になっていない投稿
- スパムや攻撃的な表現を用いた投稿
評価を下げる際はその理由を明確に伝え、適切な回答に修正してもらいましょう。
15分調べてもわからないことは、teratailで質問しよう!
- ただいまの回答率 88.22%
- 質問をまとめることで、思考を整理して素早く解決
- テンプレート機能で、簡単に質問をまとめられる