Rails
herokuへのデプロイで
git push heroku master
をすると下記のエラーに毎回なってしまいます。
どなたかお助けください、、、、
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: ! NoMethodError: undefined method `load_tasks' for nil:NilClass
remote: ! /tmp/build_5acebea364fb833e47a864863383ebb3/Rakefile:6:in `<top (required)>'
remote: ! /tmp/build_5acebea364fb833e47a864863383ebb3/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/lib/rake/rake_module.rb:29:in `load'
remote: ! /tmp/build_5acebea364fb833e47a864863383ebb3/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/lib/rake/rake_module.rb:29:in `load_rakefile'
remote: ! /tmp/build_5acebea364fb833e47a864863383ebb3/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/lib/rake/application.rb:703:in `raw_load_rakefile'
remote: ! /tmp/build_5acebea364fb833e47a864863383ebb3/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/lib/rake/application.rb:104:in `block in load_rakefile'
remote: ! /tmp/build_5acebea364fb833e47a864863383ebb3/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/lib/rake/application.rb:186:in `standard_exception_handling'
remote: ! /tmp/build_5acebea364fb833e47a864863383ebb3/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/lib/rake/application.rb:103:in `load_rakefile'
remote: ! /tmp/build_5acebea364fb833e47a864863383ebb3/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/lib/rake/application.rb:82:in `block in run'
remote: ! /tmp/build_5acebea364fb833e47a864863383ebb3/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/lib/rake/application.rb:186:in `standard_exception_handling'
remote: ! /tmp/build_5acebea364fb833e47a864863383ebb3/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/lib/rake/application.rb:80:in `run'
remote: ! /tmp/build_5acebea364fb833e47a864863383ebb3/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
remote: ! vendor/bundle/bin/rake:17:in `load'
remote: ! vendor/bundle/bin/rake:17:in `<main>'
remote: !
remote: /app/tmp/buildpacks/f6d48d8a14fccbb19c0c0402fca224929d18e9ee042b3e204bc5992612e990d3b3a0fb1f9627b1a3bae11e9fa20dffc96e136bd734a2f3cf92a0d05bedd42cfe/lib/language_pack/helpers/rake_runner.rb:106: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: NoMethodError: undefined method `load_tasks' for nil:NilClass
remote: /tmp/build_5acebea364fb833e47a864863383ebb3/Rakefile:6:in `<top (required)>'
=================
remote: ! Push rejected, failed to compile Ruby app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to ///-27048.
remote:
To https://git.heroku.com////-27048.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com////-27048.git'
現在エラーの模様が下記に変わってまいりましたのでご報告させていただきます。。。。
remote: /tmp/build_acfaf784ed1b31bb563b8f26ec29bdfa/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.6/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
remote: /tmp/build_acfaf784ed1b31bb563b8f26ec29bdfa/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.6/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
remote: /tmp/build_acfaf784ed1b31bb563b8f26ec29bdfa/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.6/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
remote: /tmp/build_acfaf784ed1b31bb563b8f26ec29bdfa/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.6/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
remote: /tmp/build_acfaf784ed1b31bb563b8f26ec29bdfa/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.6/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
remote: /tmp/build_acfaf784ed1b31bb563b8f26ec29bdfa/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.6/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
remote: /tmp/build_acfaf784ed1b31bb563b8f26ec29bdfa/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.6/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
remote: /tmp/build_acfaf784ed1b31bb563b8f26ec29bdfa/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.6/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
remote: /tmp/build_acfaf784ed1b31bb563b8f26ec29bdfa/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.6/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
remote: /tmp/build_acfaf784ed1b31bb563b8f26ec29bdfa/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.6/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
remote: /tmp/build_acfaf784ed1b31bb563b8f26ec29bdfa/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.6/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
remote: !
remote: ! Precompiling assets failed.
remote: !
source 'https://rubygems.org'
gem 'rails', '4.2.6'
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.6'
gem 'devise'
gem 'toastr-rails'
gem 'omniauth-facebook'
gem "paperclip", "~> 5.0.0.beta1"
gem 'dropzonejs-rails'
gem "figaro", "~> 1.1.0"
group :production do
gem 'pg'
gem 'rails_12factor'
end
group :development, :test do
gem 'sqlite3'
end
group :development, :test do
gem 'byebug'
end
group :development do
background. Read more: https://github.com/rails/spring
gem 'spring'
end
Gemはこんな感じでございます、、
バージョンの問題等でしょうか、、、、、
すいません、、、
-
気になる質問をクリップする
クリップした質問は、後からいつでもマイページで確認できます。
またクリップした質問に回答があった際、通知やメールを受け取ることができます。
クリップを取り消します
-
良い質問の評価を上げる
以下のような質問は評価を上げましょう
- 質問内容が明確
- 自分も答えを知りたい
- 質問者以外のユーザにも役立つ
評価が高い質問は、TOPページの「注目」タブのフィードに表示されやすくなります。
質問の評価を上げたことを取り消します
-
評価を下げられる数の上限に達しました
評価を下げることができません
- 1日5回まで評価を下げられます
- 1日に1ユーザに対して2回まで評価を下げられます
質問の評価を下げる
teratailでは下記のような質問を「具体的に困っていることがない質問」、「サイトポリシーに違反する質問」と定義し、推奨していません。
- プログラミングに関係のない質問
- やってほしいことだけを記載した丸投げの質問
- 問題・課題が含まれていない質問
- 意図的に内容が抹消された質問
- 過去に投稿した質問と同じ内容の質問
- 広告と受け取られるような投稿
評価が下がると、TOPページの「アクティブ」「注目」タブのフィードに表示されにくくなります。
質問の評価を下げたことを取り消します
この機能は開放されていません
評価を下げる条件を満たしてません
質問の評価を下げる機能の利用条件
この機能を利用するためには、以下の事項を行う必要があります。
- 質問回答など一定の行動
-
メールアドレスの認証
メールアドレスの認証
-
質問評価に関するヘルプページの閲覧
質問評価に関するヘルプページの閲覧
まだ回答がついていません
15分調べてもわからないことは、teratailで質問しよう!
- ただいまの回答率 88.09%
- 質問をまとめることで、思考を整理して素早く解決
- テンプレート機能で、簡単に質問をまとめられる
質問への追記・修正の依頼
dyoshikawa
2018/07/27 10:26
ローカルでは正常に動いているのでしょうか?
showko222
2018/07/27 22:00
はい、ローカルでは正常に動いております
satoshih
2018/07/27 22:11
https://bacchi.me/git/git-push-troubleshooting/ これ試されてますか?
showko222
2018/07/27 22:15
初心者すぎて大変申し訳ございませんが、いただいた内容はこの時点で試しておらず、何度もpushしてしまっております。
satoshih
2018/07/27 22:17
以前に heroku へpushしたソースとpushしようとしているソースがコンフリクトしてないか確認できますか?
showko222
2018/07/27 22:19
何回か、heroku create で新しく作り直しておりますが同じ場面でエラーが出てしまっている状態でございます。(見当違いの解答でしたら申し訳ございません、、)
satoshih
2018/07/27 22:22
作り直してるのでしたらコンフリクトは関係なさそうですね。失礼しました。
satoshih
2018/07/27 22:24
https://gist.github.com/konitter/5370904 これも試して見てください
showko222
2018/07/27 23:57
ありがとうございます🙇 概ねこの通りにやっておりますが、、エラーになってしまいました、、