質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Ruby on Rails 5

Ruby on Rails 5は、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Heroku

HerokuはHeroku社が開発と運営を行っているPaaSの名称です。RubyやNode.js、Python、そしてJVMベース(Java、Scala、Clojureなど)の複数のプログラミング言語をサポートしている。

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Ruby on Rails 4

Ruby on Rails4はRubyによって書かれたオープンソースのウェブフレームワークです。 Ruby on Railsは「設定より規約」の原則に従っており、効率的に作業を行うために再開発を行う必要をなくしてくれます。

Q&A

0回答

1558閲覧

Herokuへのデプロイ git push heroku masterでエラー 助けてください、、泣

showko222

総合スコア13

Ruby on Rails 5

Ruby on Rails 5は、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Heroku

HerokuはHeroku社が開発と運営を行っているPaaSの名称です。RubyやNode.js、Python、そしてJVMベース(Java、Scala、Clojureなど)の複数のプログラミング言語をサポートしている。

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Ruby on Rails 4

Ruby on Rails4はRubyによって書かれたオープンソースのウェブフレームワークです。 Ruby on Railsは「設定より規約」の原則に従っており、効率的に作業を行うために再開発を行う必要をなくしてくれます。

0グッド

0クリップ

投稿2018/07/26 10:11

編集2018/07/27 14:57
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はこんな感じでございます、、 バージョンの問題等でしょうか、、、、、 すいません、、、

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

退会済みユーザー

退会済みユーザー

2018/07/27 01:26

ローカルでは正常に動いているのでしょうか?
showko222

2018/07/27 13:00

はい、ローカルでは正常に動いております
showko222

2018/07/27 13:15

初心者すぎて大変申し訳ございませんが、いただいた内容はこの時点で試しておらず、何度もpushしてしまっております。
satoshih

2018/07/27 13:17

以前に heroku へpushしたソースとpushしようとしているソースがコンフリクトしてないか確認できますか?
showko222

2018/07/27 13:19

何回か、heroku create で新しく作り直しておりますが同じ場面でエラーが出てしまっている状態でございます。(見当違いの解答でしたら申し訳ございません、、)
satoshih

2018/07/27 13:22

作り直してるのでしたらコンフリクトは関係なさそうですね。失礼しました。
showko222

2018/07/27 14:57

ありがとうございます???? 概ねこの通りにやっておりますが、、エラーになってしまいました、、
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問