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

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

新規登録して質問してみよう
ただいま回答率
85.49%
Heroku

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

Ruby on Rails

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

Q&A

解決済

1回答

2066閲覧

git push heroku でエラーが出ます。

satail

総合スコア31

Heroku

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

Ruby on Rails

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

0グッド

1クリップ

投稿2017/03/07 05:31

編集2017/03/08 06:26

###前提・実現したいこと
このエラーを直してデプロイをしたいです。
rails tutorialの11章が終わりGitのトピックブランチをmasterにマージし、続いてリモートリポジトリにプッシュし、Herokuにデプロイを行った際に、errorが起こりデプロイが成功しませんでした。
###発生している問題・エラーメッセージ

-----> Ruby app detected -----> Compiling Ruby/Rails -----> Using Ruby version: ruby-2.2.6 -----> Installing dependencies using bundler 1.13.7 Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment Warning: the running version of Bundler (1.13.7) is older than the version that created the lockfile (1.14.6). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`. Fetching gem metadata from https://rubygems.org/......... Fetching version metadata from https://rubygems.org/.. Fetching dependency metadata from https://rubygems.org/. Using rake 12.0.0 Using concurrent-ruby 1.0.5 Using i18n 0.8.1 Using minitest 5.10.1 Using thread_safe 0.3.6 Using builder 3.2.3 Using erubis 2.7.0 Using mini_portile2 2.1.0 Using rack 2.0.1 Using nio4r 1.2.1 Using websocket-extensions 0.1.2 Using mime-types-data 3.2016.0521 Using arel 7.1.4 Using execjs 2.7.0 Using bcrypt 3.1.11 Using sass 3.4.23 Using will_paginate 3.1.0 Using coffee-script-source 1.12.2 Using method_source 0.8.2 Using thor 0.19.4 Using multi_json 1.12.1 Using pg 0.18.4 Using puma 3.4.0 Using bundler 1.13.7 Using tilt 2.0.6 Using turbolinks-source 5.0.0 Using faker 1.6.6 Using nokogiri 1.7.0.1 Using rack-test 0.6.3 Using sprockets 3.7.1 Using websocket-driver 0.6.5 Using mime-types 3.1 Using bootstrap-will_paginate 0.0.10 Using autoprefixer-rails 6.7.6 Using coffee-script 2.4.1 Using uglifier 3.0.0 Using turbolinks 5.0.1 Using tzinfo 1.2.2 Using loofah 2.0.3 Using mail 2.6.4 Using bootstrap-sass 3.3.6 Using activesupport 5.0.0.1 Using rails-html-sanitizer 1.0.3 Using rails-dom-testing 2.0.2 Using globalid 0.3.7 Using activemodel 5.0.0.1 Using jbuilder 2.4.1 Using activejob 5.0.0.1 Using activerecord 5.0.0.1 Using actionview 5.0.0.1 Using actionpack 5.0.0.1 Using actioncable 5.0.0.1 Using actionmailer 5.0.0.1 Using railties 5.0.0.1 Using sprockets-rails 3.2.0 Using coffee-rails 4.2.1 Using jquery-rails 4.1.1 Using rails 5.0.0.1 Using sass-rails 5.0.6 Bundle complete! 25 Gemfile dependencies, 59 gems now installed. Gems in the groups development and test were not installed. Bundled gems are installed into ./vendor/bundle. Bundle completed (2.58s) Cleaning up the bundler cache. Warning: the running version of Bundler (1.13.7) is older than the version that created the lockfile (1.14.6). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`. -----> Detecting rake tasks -----> Preparing app for Rails asset pipeline Running: rake assets:precompile rake aborted! NoMethodError: undefined method `action' for #<Rails::Application::Configuration:0x007fa5b17fa568> /tmp/build_dc7f1818c3e0158b52592e0f45ef3ade/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/railtie/configuration.rb:95:in `method_missing' /tmp/build_dc7f1818c3e0158b52592e0f45ef3ade/config/environments/production.rb:59:in `block in <top (required)>' /tmp/build_dc7f1818c3e0158b52592e0f45ef3ade/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/railtie.rb:209:in `instance_eval' /tmp/build_dc7f1818c3e0158b52592e0f45ef3ade/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/railtie.rb:209:in `configure' /tmp/build_dc7f1818c3e0158b52592e0f45ef3ade/config/environments/production.rb:1:in `<top (required)>' /tmp/build_dc7f1818c3e0158b52592e0f45ef3ade/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require' /tmp/build_dc7f1818c3e0158b52592e0f45ef3ade/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `block in require' /tmp/build_dc7f1818c3e0158b52592e0f45ef3ade/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:259:in `load_dependency' /tmp/build_dc7f1818c3e0158b52592e0f45ef3ade/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in `require' /tmp/build_dc7f1818c3e0158b52592e0f45ef3ade/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/engine.rb:600:in `block (2 levels) in <class:Engine>' /tmp/build_dc7f1818c3e0158b52592e0f45ef3ade/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/engine.rb:599:in `each' /tmp/build_dc7f1818c3e0158b52592e0f45ef3ade/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/engine.rb:599:in `block in <class:Engine>' /tmp/build_dc7f1818c3e0158b52592e0f45ef3ade/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:30:in `instance_exec' /tmp/build_dc7f1818c3e0158b52592e0f45ef3ade/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:30:in `run' /tmp/build_dc7f1818c3e0158b52592e0f45ef3ade/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:55:in `block in run_initializers' /tmp/build_dc7f1818c3e0158b52592e0f45ef3ade/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:44:in `each' /tmp/build_dc7f1818c3e0158b52592e0f45ef3ade/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:44:in `tsort_each_child' /tmp/build_dc7f1818c3e0158b52592e0f45ef3ade/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:54:in `run_initializers' /tmp/build_dc7f1818c3e0158b52592e0f45ef3ade/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/application.rb:352:in `initialize!' /tmp/build_dc7f1818c3e0158b52592e0f45ef3ade/config/environment.rb:5:in `<top (required)>' /tmp/build_dc7f1818c3e0158b52592e0f45ef3ade/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/application.rb:328:in `require' /tmp/build_dc7f1818c3e0158b52592e0f45ef3ade/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/application.rb:328:in `require_environment!' /tmp/build_dc7f1818c3e0158b52592e0f45ef3ade/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/application.rb:448:in `block in run_tasks_blocks' /tmp/build_dc7f1818c3e0158b52592e0f45ef3ade/vendor/bundle/ruby/2.2.0/gems/sprockets-rails-3.2.0/lib/sprockets/rails/task.rb:62:in `block (2 levels) in define' /tmp/build_dc7f1818c3e0158b52592e0f45ef3ade/vendor/bundle/ruby/2.2.0/gems/rake-12.0.0/exe/rake:27:in `<top (required)>' Tasks: TOP => environment (See full trace by running task with --trace) ! ! Precompiling assets failed. ! ! Push rejected, failed to compile Ruby app. ! Push failed

###該当のソースコード

Ruby on Rails git push heroku

###試したこと
NoMethodError: undefined method action' for #<Rails::Application::Configuration:0x007fa5b17fa568> /tmp/build_dc7f1818c3e0158b52592e0f45ef3ade/vendor/bundle/ruby/2.2.0/gems/railties-5.0.0.1/lib/rails/railtie/configuration.rb:95:in method_missing' ここのエラーが原因だと思い類似のものを探してgem web console がinstallされているか確認しましたが、直りませんでした。

###補足
Heroku
cloud9
rails tでのエラーはありません。

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

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

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

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

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

guest

回答1

0

自己解決

理由はわかりませんが、Gemfile.lockを削除→Gemfileの gem 'rails', '~>5.0.0.1'に変更→bundle installをし、再度herokuにgit push heroku master をするこで直りました。

投稿2017/03/09 12:08

satail

総合スコア31

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

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

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.49%

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

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

質問する

関連した質問