Home>

I want to deploy it on heroku and display it

I am creating an original app after the rails tutorial
Running git push heroku master while watching the tutorial

Error message

error: failed to push some refs to'https://git.heroku.com/mysterious-eyrie-13192.git'


Is displayed.
I googled this error, but I was confused because I came out with knowledge of GUI etc. I did not know yet, so I asked you a question.

Applicable source code
Counting objects: 98, done.
remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
remote: The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for.Bundler is installing for ruby ​​but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Omitted because the number of characters exceeds
remote: Bundle complete! 19 Gemfile dependencies, 63 gems now installed.
remote: Gems in the groups development and test were not installed.
remote: Bundled gems are installed into `./vendor/bundle`
remote: Post-install message from i18n:
remote:
remote: HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
remote: But that may break your application.
remote:
remote: If i am upgrading your Rails application from an older version of Rails:
remote:
remote: Please check your Rails app for'config.i18n.fallbacks = true'.
remote: If you're using I18n (>= 1.1.0) and Rails (<5.2.2), this should be
remote:'config.i18n.fallbacks = [I18n.default_locale]'.
remote: If not, fallbacks will be broken in your app by I18n 1.1.x.
remote:remote: If i am starting a NEW Rails application, you can ignore this notice.
remote:
remote: For more info see:
remote: https://github.com/svenfuchs/i18n/releases/tag/v1.1.0
remote:
remote: Post-install message from sass:
remote:
remote: Ruby Sass has reached end-of-life and should no longer be used.
remote:
remote: * If i use Sass as a command-line tool, we recommend using Dart Sass, the new
remote: primary implementation: https://sass-lang.com/install
remote:
remote: * If i use Sass as a plug-in for a Ruby web framework, we recommend using the
remote: sassc gem: https://github.com/sass/sassc-ruby#readme
remote:
remote: * For more details, please refer to the Sass blog:
remote: https://sass-lang.com/blog/posts/7828841
Omitted because the number of characters exceeds
remote: rake aborted!
remote: NoMethodError: undefined method `halt_callback_chains_on_return_false=' for ActiveSupport:Module
remote: /tmp/build_14d0eebc/config/initializers/new_framework_defaults.rb:21:in `<top (required)>'
remote: /tmp/build_14d0eebc/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.3/lib/active_support/dependencies.rb:318:in `load'
remote: /tmp/build_14d0eebc/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.3/lib/active_support/dependencies.rb:318:in `block in load'
remote: /tmp/build_14d0eebc/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.3/lib/active_support/dependencies.rb:291:in `load_dependency'
remote: /tmp/build_14d0eebc/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.3/lib/active_support/dependencies.rb:318:in `load'
remote: /tmp/build_14d0eebc/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3/lib/rails/engine.rb:666:in `block in load_config_initializer'
remote: /tmp/build_14d0eebc/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.3/lib/active_support/notifications.rb:182:in `instrument'
remote: /tmp/build_14d0eebc/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3/lib/rails/engine.rb:665:in `load_config_initializer'
remote: /tmp/build_14d0eebc/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3/lib/rails/engine.rb:625:in `block (2 levels) in<class:Engine>'
remote: /tmp/build_14d0eebc/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3/lib/rails/engine.rb:624:in `each'remote: /tmp/build_14d0eebc/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3/lib/rails/engine.rb:624:in `block in<class:Engine>'
remote: /tmp/build_14d0eebc/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3/lib/rails/initializable.rb:32:in `instance_exec'
remote: /tmp/build_14d0eebc/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3/lib/rails/initializable.rb:32:in `run'
remote: /tmp/build_14d0eebc/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3/lib/rails/initializable.rb:61:in `block in run_initializers'
remote: /tmp/build_14d0eebc/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3/lib/rails/initializable.rb:50:in `each'
remote: /tmp/build_14d0eebc/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3/lib/rails/initializable.rb:50:in `tsort_each_child'
remote: /tmp/build_14d0eebc/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3/lib/rails/initializable.rb:60:in `run_initializers'
remote: /tmp/build_14d0eebc/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3/lib/rails/application.rb:363:in `initialize!'
remote: /tmp/build_14d0eebc/config/environment.rb:5:in `<top (required)>'
remote: /tmp/build_14d0eebc/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.3/lib/active_support/dependencies.rb:324:in `require'
remote: /tmp/build_14d0eebc/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.3/lib/active_support/dependencies.rb:324:in `block in require'
remote: /tmp/build_14d0eebc/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.3/lib/active_support/dependencies.rb:291:in `load_dependency'
remote: /tmp/build_14d0eebc/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.3/lib/active_support/dependencies.rb:324:in `require'
remote: /tmp/build_14d0eebc/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3/lib/rails/application.rb:339:in `require_environment!'
remote: /tmp/build_14d0eebc/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3/lib/rails/application.rb:523:in `block in run_tasks_blocks'
remote: /tmp/build_14d0eebc/vendor/bundle/ruby/2.6.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:62:in `block (2 levels) in define'
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 mysterious-eyrie-13192.
remote:
To https://git.heroku.com/mysterious-eyrie-13192.git! [remote rejected] master ->master (pre-receive hook declined)
error: failed to push some refs to'https://git.heroku.com/mysterious-eyrie-13192.git'
code
What I tried

Another articlehttps://www.tutorialfor.com/go.php?id=166277After referring to, I typed "git remote -v"

Heroku https://git.heroku.com/mysterious-eyrie-13192.git (fetch)
Heroku https://git.heroku.com/mysterious-eyrie-13192.git (push)
origin https://github.com/Yamashita-Taiki/review_app.git (fetch)
origin https://github.com/Yamashita-Taiki/review_app.git (push)


Is coming out. As far as I can see the above two, I felt the contents because they are different servers.

Also, Heroku log

ubuntu:~/environment/review_app (master) $heroku logs
2020-07-30T17:17:17.118484+00:00 app[api]: Release v1 created by user
2020-07-30T17:17:17.118484+00:00 app[api]: Initial release by user
2020-07-30T17:17:17.227363+00:00 app[api]: Release v2 created by user
2020-07-30T17:17:17.227363+00:00 app[api]: Enable Logplex by user
2020-07-30T17:17:42.000000+00:00 app[api]: Build started by user
2020-07-30T17:21:16.000000+00:00 app[api]: Build failed --check your build output: https://dashboard.heroku.com/apps/a5c265da-892a-4501-9732-a7993dea33e0/activity /builds/9fc94ca5-a47a-4cef-8a23-70b51b9173de
2020-07-30T17:22:17.519180+00:00 heroku[router]: at=info code=H81 desc="Blank app" method=GET path="/" host=mysterious-eyrie-13192.herokuapp.com request_id =3ced97be-1dd4-4606-9964-43a58c0bf6af fwd="111.239.170.117" dyno= connect= service= status=502 bytes= protocol=https
Omitted because the number of characters exceeds
2020-07-31T05:09:55.000000+00:00 app[api]: Build started by user
2020-07-31T05:13:27.000000+00:00 app[api]: Build failed --check your build output: https://dashboard.heroku.com/apps/a5c265da-892a-4501-9732-a7993dea33e0/activity /builds/39b64cc6-7732-4fef-8a98-8846c3c4fec4

It is a situation like that.

Supplementary information (FW/tool ​​version, etc.)

I am using cloud9.
We apologize for the omission of some characters because the number of characters exceeds the limit.
I think it's rudimentary, but I'd appreciate it if you could lend it to me.

  • Answer # 1

    The files generated by previous versions of Rails are
    Seems to be because it doesn't work with newer Rails versions

    config/initializers/new_framework_defaults.rb
    Remove the offending line

    Rails s doesn't start when I raise the Rails version of an existing app-Qiita

    reference:
    Obsoleted methodhalt_callback_chains_on_return_falsestill called in Rails 5.2 · Issue #32653 · rails/rails

    Rails 5.1 generated a file in your application at
    config/initializers/new_framework_defaults.rb
    which contains this code.
    You'll need to delete the offending line.