表題の内容通りです。
git push heroku masterの際、エラーが発生してpushできません。
以下、エラー内容です。
NameError: undefined local variable or method `otetsudainetto' for #<Otetsudai::Application:0x0055c997390358> remote: ! Precompiling assets failed. remote: ! remote: ! Push rejected, failed to compile Ruby app. remote: remote: ! Push failed remote: Verifying deploy... remote: remote: ! Push rejected to otetsudainetto. ``` エラー内容全文 ``` remote: Cleaning up the bundler cache. remote: Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.16.1). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`. remote: The latest bundler is 1.17.0.pre.1, but you are currently running 1.15.2. remote: To update, run `gem install bundler --pre` remote: -----> Installing node-v8.10.0-linux-x64 remote: -----> Detecting rake tasks remote: -----> Preparing app for Rails asset pipeline remote: Running: rake assets:precompile remote: rake aborted! remote: NameError: undefined local variable or method `otetsudainetto' for #<Otetsudai::Application:0x0055c997390358> remote: /tmp/build_acf97b5e854585e77c3ad71b7dcf66d1/config/environments/production.rb:98:in `block in <main>' remote: /tmp/build_acf97b5e854585e77c3ad71b7dcf66d1/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/railtie.rb:216:in `instance_eval' remote: /tmp/build_acf97b5e854585e77c3ad71b7dcf66d1/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/railtie.rb:216:in `configure' remote: /tmp/build_acf97b5e854585e77c3ad71b7dcf66d1/config/environments/production.rb:1:in `<main>' remote: /tmp/build_acf97b5e854585e77c3ad71b7dcf66d1/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require' remote: /tmp/build_acf97b5e854585e77c3ad71b7dcf66d1/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi' remote: /tmp/build_acf97b5e854585e77c3ad71b7dcf66d1/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register' remote: /tmp/build_acf97b5e854585e77c3ad71b7dcf66d1/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi' remote: /tmp/build_acf97b5e854585e77c3ad71b7dcf66d1/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require' remote: /tmp/build_acf97b5e854585e77c3ad71b7dcf66d1/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `block in require' remote: /tmp/build_acf97b5e854585e77c3ad71b7dcf66d1/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency' remote: /tmp/build_acf97b5e854585e77c3ad71b7dcf66d1/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require' remote: /tmp/build_acf97b5e854585e77c3ad71b7dcf66d1/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/engine.rb:602:in `block (2 levels) in <class:Engine>' remote: /tmp/build_acf97b5e854585e77c3ad71b7dcf66d1/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/engine.rb:601:in `each' remote: /tmp/build_acf97b5e854585e77c3ad71b7dcf66d1/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/engine.rb:601:in `block in <class:Engine>' remote: /tmp/build_acf97b5e854585e77c3ad71b7dcf66d1/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/initializable.rb:32:in `instance_exec' remote: /tmp/build_acf97b5e854585e77c3ad71b7dcf66d1/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/initializable.rb:32:in `run' remote: /tmp/build_acf97b5e854585e77c3ad71b7dcf66d1/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/initializable.rb:61:in `block in run_initializers' remote: /tmp/build_acf97b5e854585e77c3ad71b7dcf66d1/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/initializable.rb:50:in `each' remote: /tmp/build_acf97b5e854585e77c3ad71b7dcf66d1/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/initializable.rb:50:in `tsort_each_child' remote: /tmp/build_acf97b5e854585e77c3ad71b7dcf66d1/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/initializable.rb:60:in `run_initializers' remote: /tmp/build_acf97b5e854585e77c3ad71b7dcf66d1/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/application.rb:361:in `initialize!' remote: /tmp/build_acf97b5e854585e77c3ad71b7dcf66d1/config/environment.rb:5:in `<main>' remote: /tmp/build_acf97b5e854585e77c3ad71b7dcf66d1/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require' remote: /tmp/build_acf97b5e854585e77c3ad71b7dcf66d1/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi' remote: /tmp/build_acf97b5e854585e77c3ad71b7dcf66d1/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register' remote: /tmp/build_acf97b5e854585e77c3ad71b7dcf66d1/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi' remote: /tmp/build_acf97b5e854585e77c3ad71b7dcf66d1/vendor/bundle/ruby/2.4.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require' remote: /tmp/build_acf97b5e854585e77c3ad71b7dcf66d1/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `block in require' remote: /tmp/build_acf97b5e854585e77c3ad71b7dcf66d1/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency' remote: /tmp/build_acf97b5e854585e77c3ad71b7dcf66d1/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:287:in `require' remote: /tmp/build_acf97b5e854585e77c3ad71b7dcf66d1/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/application.rb:337:in `require_environment!' remote: /tmp/build_acf97b5e854585e77c3ad71b7dcf66d1/vendor/bundle/ruby/2.4.0/gems/railties-5.2.1/lib/rails/application.rb:520:in `block in run_tasks_blocks' remote: /tmp/build_acf97b5e854585e77c3ad71b7dcf66d1/vendor/bundle/ruby/2.4.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:62:in `block (2 levels) in define' remote: /tmp/build_acf97b5e854585e77c3ad71b7dcf66d1/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/exe/rake:27:in `<top (required)>' remote: Tasks: TOP => environment remote: (See full trace by running task with --trace) remote: remote: ! remote: ! Precompiling assets failed. remote: ! remote: ! Push rejected, failed to compile Ruby app. remote: remote: ! Push failed remote: Verifying deploy... remote: remote: ! Push rejected to otetsudainetto. remote: To https://git.heroku.com/otetsudainetto.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/otetsudainetto.git' ``` 自分でも調べているのですが、いまいち原因がわからなかったので、質問させていただきました。 ご教示の喉よろしくお願いいたします。 ※追記です。 NameError: undefined local variable or method `otetsudainetto' for <Otetsudai::Application:0x0055c997390358>の 『otetsudainetto』を捜しているのですが、まったく見当たりません。 そもそも、、そのような変数、メソッドにおぼえがありません。 以前、otetsudainettoというアプリを開発していて挫折してしまい、今回はnewotetsudainetto と名前を変えて挑戦しています。 変な話なのですが、どこを探していけば、このエラー元『otetsudainetto』を発見できるのでしょうか? 自分で探せよという話ですが、簡単なアドバイスでいいので、ご回答お待ちしております。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/10/07 15:13