【Ruby on Rails】Herokuのデプロイ時のエラーについての対処法

RailsチュートリアルでHerokuにアップする時があり、
`git push && git push heroku master`と打つとエラーになりはまってしまったのでその対処法を記述しておきます。

Herokuをデプロイするために打ったコマンド
```
$ git commit -am "Add hello"
$ heroku create
$ git push && git push heroku master
```

出てきた内容

```
hogehoge toy_app % git push -f heroku main
Enumerating objects: 89, done.
Counting objects: 100% (89/89), done.
Delta compression using up to 4 threads
Compressing objects: 100% (72/72), done.
Writing objects: 100% (89/89), 22.14 KiB | 2.21 MiB/s, done.
Total 89 (delta 2), reused 0 (delta 0), pack-reused 0
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Building on the Heroku-20 stack
remote: -----> Determining which buildpack to use for this app
remote: -----> Ruby app detected
remote: -----> Installing bundler 2.3.10
remote: -----> Removing BUNDLED WITH version in the Gemfile.lock
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-3.1.1
remote: -----> Installing dependencies using bundler 2.3.10
remote:        Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 bundle install -j4
remote:        Your Gemfile lists the gem tzinfo-data (>= 0) more than once.
remote:        You should probably keep only one of them.
remote:        Remove any duplicate entries and specify the gem only once.
remote:        While it's not a problem now, it could cause errors if you change the version of one of them later.
remote:        Your bundle only supports platforms ["x86_64-darwin-21"] but your local platform
remote:        is x86_64-linux. Add the current platform to the lockfile with
remote:        `bundle lock --add-platform x86_64-linux` and try again.
remote:        Bundler Output: Your Gemfile lists the gem tzinfo-data (>= 0) more than once.
remote:        You should probably keep only one of them.
remote:        Remove any duplicate entries and specify the gem only once.
remote:        While it's not a problem now, it could cause errors if you change the version of one of them later.
remote:        Your bundle only supports platforms ["x86_64-darwin-21"] but your local platform
remote:        is x86_64-linux. Add the current platform to the lockfile with
remote:        `bundle lock --add-platform x86_64-linux` and try again.
remote: 
remote:  !
remote:  !     Failed to install gems via Bundler.
remote:  !
remote:  !     Push rejected, failed to compile Ruby app.
remote: 
remote:  !     Push failed
remote:  !
remote:  ! ## Warning - The same version of this code has already been built: 68bb064ee0b57541f881445378487e6a05a0c508
remote:  !
remote:  ! We have detected that you have triggered a build from source code with version 68bb064ee0b57541f881445378487e6a05a0c508
remote:  ! at least twice. One common cause of this behavior is attempting to deploy code from a different branch.
remote:  !
remote:  ! If you are developing on a branch and deploying via git you must run:
remote:  !
remote:  !     git push heroku <branchname>:main
remote:  !
remote:  ! This article goes into details on the behavior:
remote:  !   https://devcenter.heroku.com/articles/duplicate-build-version
remote: 
remote: Verifying deploy...
remote: 
remote: !       Push rejected to sheltered-retreat-93747.
remote: 
To https://git.heroku.com/hogehoge-1010.git
 ! [remote rejected] main -> main (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/hogehoge-1010.git'
```

Failed to install gems via Bundler.と出てきてしまします。


こちらのエラー分を解読するとHrokuは["x86_64-darwin-21"]しか対応してませんと書いてるようなので、
```
remote:        Your bundle only supports platforms ["x86_64-darwin-21"] but your local platform
remote:        is x86_64-linux. Add the current platform to the lockfile with
remote:        `bundle lock --add-platform x86_64-linux` and try again.
```

こちらを叩く

```
$ bundle lock --add-platform x86_64-linux
```

後はこんな感じでコミット
```
$ git add -A
$ git git commit -m "add-platform x86_64-linux fix"
```

デプロイ
```
$ git push && git push heroku main
```

とりあえず解決できたようです。
```
Enumerating objects: 92, done.
Counting objects: 100% (92/92), done.
Delta compression using up to 4 threads
Compressing objects: 100% (75/75), done.
Writing objects: 100% (92/92), 22.42 KiB | 2.24 MiB/s, done.
Total 92 (delta 4), reused 0 (delta 0), pack-reused 0
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Building on the Heroku-20 stack
remote: -----> Determining which buildpack to use for this app
remote: -----> Ruby app detected
remote: -----> Installing bundler 2.3.10
remote: -----> Removing BUNDLED WITH version in the Gemfile.lock
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-3.1.1
remote: -----> Installing dependencies using bundler 2.3.10
remote:        Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 bundle install -j4
remote:        Your Gemfile lists the gem tzinfo-data (>= 0) more than once.
remote:        You should probably keep only one of them.
remote:        Remove any duplicate entries and specify the gem only once.
remote:        While it's not a problem now, it could cause errors if you change the version of one of them later.
remote:        Fetching gem metadata from https://rubygems.org/..........
remote:        Fetching rake 13.0.6
remote:        Installing rake 13.0.6
remote:        Fetching concurrent-ruby 1.1.10
remote:        Fetching minitest 5.15.0
remote:        Fetching erubi 1.10.0
remote:        Fetching builder 3.2.4
remote:        Installing erubi 1.10.0
remote:        Installing minitest 5.15.0
remote:        Installing builder 3.2.4
remote:        Using racc 1.6.0
remote:        Fetching crass 1.0.6
remote:        Fetching rack 2.2.3
remote:        Installing crass 1.0.6
remote:        Fetching nio4r 2.5.8
remote:        Installing concurrent-ruby 1.1.10
remote:        Installing rack 2.2.3
remote:        Fetching websocket-extensions 0.1.5
remote:        Installing nio4r 2.5.8 with native extensions
remote:        Installing websocket-extensions 0.1.5
remote:        Fetching marcel 1.0.2
remote:        Installing marcel 1.0.2
remote:        Fetching mini_mime 1.1.2
remote:        Using digest 3.1.0
remote:        Using timeout 0.2.0
remote:        Fetching msgpack 1.5.1
remote:        Fetching strscan 3.0.3
remote:        Installing mini_mime 1.1.2
remote:        Installing strscan 3.0.3 with native extensions
remote:        Using bundler 2.3.10
remote:        Fetching ffi 1.15.5
remote:        Installing msgpack 1.5.1 with native extensions
remote:        Installing ffi 1.15.5 with native extensions
remote:        Fetching method_source 1.0.0
remote:        Installing method_source 1.0.0
remote:        Fetching thor 1.2.1
remote:        Installing thor 1.2.1
remote:        Fetching zeitwerk 2.5.4
remote:        Installing zeitwerk 2.5.4
remote:        Fetching pg 1.1.4
remote:        Installing pg 1.1.4 with native extensions
remote:        Fetching tilt 2.0.10
remote:        Installing tilt 2.0.10
remote:        Fetching nokogiri 1.13.6 (x86_64-linux)
remote:        Installing nokogiri 1.13.6 (x86_64-linux)
remote:        Fetching websocket-driver 0.7.5
remote:        Installing websocket-driver 0.7.5 with native extensions
remote:        Fetching rack-test 1.1.0
remote:        Installing rack-test 1.1.0
remote:        Fetching i18n 1.10.0
remote:        Installing i18n 1.10.0
remote:        Fetching tzinfo 2.0.4
remote:        Installing tzinfo 2.0.4
remote:        Fetching sprockets 4.0.3
remote:        Installing sprockets 4.0.3
remote:        Fetching net-protocol 0.1.3
remote:        Installing net-protocol 0.1.3
remote:        Fetching mail 2.7.1
remote:        Installing mail 2.7.1
remote:        Fetching puma 5.6.4
remote:        Installing puma 5.6.4 with native extensions
remote:        Fetching loofah 2.18.0
remote:        Installing loofah 2.18.0
remote:        Fetching activesupport 7.0.3
remote:        Installing activesupport 7.0.3
remote:        Fetching net-imap 0.2.3
remote:        Installing net-imap 0.2.3
remote:        Fetching net-pop 0.1.1
remote:        Installing net-pop 0.1.1
remote:        Fetching net-smtp 0.3.1
remote:        Installing net-smtp 0.3.1
remote:        Fetching bootsnap 1.11.1
remote:        Installing bootsnap 1.11.1 with native extensions
remote:        Fetching rails-html-sanitizer 1.4.2
remote:        Installing rails-html-sanitizer 1.4.2
remote:        Fetching rails-dom-testing 2.0.3
remote:        Installing rails-dom-testing 2.0.3
remote:        Fetching globalid 1.0.0
remote:        Installing globalid 1.0.0
remote:        Fetching activemodel 7.0.3
remote:        Installing activemodel 7.0.3
remote:        Fetching actionview 7.0.3
remote:        Installing actionview 7.0.3
remote:        Fetching activejob 7.0.3
remote:        Installing activejob 7.0.3
remote:        Fetching activerecord 7.0.3
remote:        Installing activerecord 7.0.3
remote:        Fetching actionpack 7.0.3
remote:        Installing actionpack 7.0.3
remote:        Fetching jbuilder 2.11.5
remote:        Installing jbuilder 2.11.5
remote:        Fetching actioncable 7.0.3
remote:        Installing actioncable 7.0.3
remote:        Fetching activestorage 7.0.3
remote:        Installing activestorage 7.0.3
remote:        Fetching actionmailer 7.0.3
remote:        Installing actionmailer 7.0.3
remote:        Fetching railties 7.0.3
remote:        Installing railties 7.0.3
remote:        Fetching sprockets-rails 3.4.2
remote:        Installing sprockets-rails 3.4.2
remote:        Fetching actionmailbox 7.0.3
remote:        Installing actionmailbox 7.0.3
remote:        Fetching actiontext 7.0.3
remote:        Installing actiontext 7.0.3
remote:        Fetching importmap-rails 1.1.0
remote:        Installing importmap-rails 1.1.0
remote:        Fetching stimulus-rails 1.0.4
remote:        Installing stimulus-rails 1.0.4
remote:        Fetching turbo-rails 1.1.0
remote:        Installing turbo-rails 1.1.0
remote:        Fetching rails 7.0.3
remote:        Installing rails 7.0.3
remote:        Fetching sassc 2.4.0
remote:        Installing sassc 2.4.0 with native extensions
remote:        Fetching sassc-rails 2.1.2
remote:        Installing sassc-rails 2.1.2
remote:        Bundle complete! 21 Gemfile dependencies, 60 gems now installed.
remote:        Gems in the groups 'development' and 'test' were not installed.
remote:        Bundled gems are installed into `./vendor/bundle`
remote:        Bundle completed (83.60s)
remote:        Cleaning up the bundler cache.
remote: -----> Detecting rake tasks
remote: -----> Preparing app for Rails asset pipeline
remote:        Running: rake assets:precompile
remote:        I, [2022-05-22T23:00:21.754174 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/manifest-b84bfa46a33d7f0dc4d2e7b8889486c9a957a5e40713d58f54be71b66954a1ff.js
remote:        I, [2022-05-22T23:00:21.754349 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/manifest-b84bfa46a33d7f0dc4d2e7b8889486c9a957a5e40713d58f54be71b66954a1ff.js.gz
remote:        I, [2022-05-22T23:00:21.754501 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/application-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css
remote:        I, [2022-05-22T23:00:21.754596 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/application-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css.gz
remote:        I, [2022-05-22T23:00:21.755094 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/application-37f365cbecf1fa2810a8303f4b6571676fa1f9c56c248528bc14ddb857531b95.js
remote:        I, [2022-05-22T23:00:21.755308 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/application-37f365cbecf1fa2810a8303f4b6571676fa1f9c56c248528bc14ddb857531b95.js.gz
remote:        I, [2022-05-22T23:00:21.755442 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/controllers/application-368d98631bccbf2349e0d4f8269afb3fe9625118341966de054759d96ea86c7e.js
remote:        I, [2022-05-22T23:00:21.755934 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/controllers/application-368d98631bccbf2349e0d4f8269afb3fe9625118341966de054759d96ea86c7e.js.gz
remote:        I, [2022-05-22T23:00:21.756157 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/controllers/hello_controller-549135e8e7c683a538c3d6d517339ba470fcfb79d62f738a0a089ba41851a554.js
remote:        I, [2022-05-22T23:00:21.756308 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/controllers/hello_controller-549135e8e7c683a538c3d6d517339ba470fcfb79d62f738a0a089ba41851a554.js.gz
remote:        I, [2022-05-22T23:00:21.756459 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/controllers/index-2db729dddcc5b979110e98de4b6720f83f91a123172e87281d5a58410fc43806.js
remote:        I, [2022-05-22T23:00:21.756555 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/controllers/index-2db729dddcc5b979110e98de4b6720f83f91a123172e87281d5a58410fc43806.js.gz
remote:        I, [2022-05-22T23:00:21.756716 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/turbo-75fdf390d33bd1a4dcbba67f94d1c3ec9257fc8b8437b17a1999a61a8ebe3718.js
remote:        I, [2022-05-22T23:00:21.756814 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/turbo-75fdf390d33bd1a4dcbba67f94d1c3ec9257fc8b8437b17a1999a61a8ebe3718.js.gz
remote:        I, [2022-05-22T23:00:21.756977 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/turbo.min-e5023178542f05fc063cd1dc5865457259cc01f3fba76a28454060d33de6f429.js
remote:        I, [2022-05-22T23:00:21.757081 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/turbo.min-e5023178542f05fc063cd1dc5865457259cc01f3fba76a28454060d33de6f429.js.gz
remote:        I, [2022-05-22T23:00:21.757216 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/turbo.min.js-a846cfe9aa92146457cc1c842185f5501c45f493ea69b21f1cdd191c039dee31.map
remote:        I, [2022-05-22T23:00:21.757583 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/actiontext-28c61f5197c204db043317a8f8826a87ab31495b741f854d307ca36122deefce.js
remote:        I, [2022-05-22T23:00:21.757705 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/actiontext-28c61f5197c204db043317a8f8826a87ab31495b741f854d307ca36122deefce.js.gz
remote:        I, [2022-05-22T23:00:21.757888 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/trix-1563ff9c10f74e143b3ded40a8458497eaf2f87a648a5cbbfebdb7dec3447a5e.js
remote:        I, [2022-05-22T23:00:21.757989 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/trix-1563ff9c10f74e143b3ded40a8458497eaf2f87a648a5cbbfebdb7dec3447a5e.js.gz
remote:        I, [2022-05-22T23:00:21.758400 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/trix-6fd35bb8fae1d6a795115763ca265369b9750f73a1c6283a0b0ef4b6c2d550c8.css
remote:        I, [2022-05-22T23:00:21.758582 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/trix-6fd35bb8fae1d6a795115763ca265369b9750f73a1c6283a0b0ef4b6c2d550c8.css.gz
remote:        I, [2022-05-22T23:00:21.758751 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/es-module-shims-cc9c89730a363e05aad0613bb8a7ee937baa2b44516176f9c19365e348032583.js
remote:        I, [2022-05-22T23:00:21.758854 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/es-module-shims-cc9c89730a363e05aad0613bb8a7ee937baa2b44516176f9c19365e348032583.js.gz
remote:        I, [2022-05-22T23:00:21.759011 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/es-module-shims.min-606ae9c3279013fe751cee30f719a592f759e705edb66496812f3d9dbce3d850.js
remote:        I, [2022-05-22T23:00:21.759116 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/es-module-shims.min-606ae9c3279013fe751cee30f719a592f759e705edb66496812f3d9dbce3d850.js.gz
remote:        I, [2022-05-22T23:00:21.759279 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/es-module-shims.js-d8b1db8467f1af14f3ecf729b9fb6dd6a55f3ccff4499a3f033397e46d48bf68.map
remote:        I, [2022-05-22T23:00:21.759566 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/stimulus-0ce1b26664523b4ad005eb6a6358abf11890dad17c46d207e5b61a04056d7b26.js
remote:        I, [2022-05-22T23:00:21.759704 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/stimulus-0ce1b26664523b4ad005eb6a6358abf11890dad17c46d207e5b61a04056d7b26.js.gz
remote:        I, [2022-05-22T23:00:21.759838 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/stimulus-autoloader-c584942b568ba74879da31c7c3d51366737bacaf6fbae659383c0a5653685693.js
remote:        I, [2022-05-22T23:00:21.760125 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/stimulus-autoloader-c584942b568ba74879da31c7c3d51366737bacaf6fbae659383c0a5653685693.js.gz
remote:        I, [2022-05-22T23:00:21.760421 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/stimulus-importmap-autoloader-db2076c783bf2dbee1226e2add52fef290b5d31b5bcd1edd999ac8a6dd31c44a.js
remote:        I, [2022-05-22T23:00:21.760748 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/stimulus-importmap-autoloader-db2076c783bf2dbee1226e2add52fef290b5d31b5bcd1edd999ac8a6dd31c44a.js.gz
remote:        I, [2022-05-22T23:00:21.760901 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/stimulus-loading-1fc59770fb1654500044afd3f5f6d7d00800e5be36746d55b94a2963a7a228aa.js
remote:        I, [2022-05-22T23:00:21.761048 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/stimulus-loading-1fc59770fb1654500044afd3f5f6d7d00800e5be36746d55b94a2963a7a228aa.js.gz
remote:        I, [2022-05-22T23:00:21.761227 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/stimulus.min-900648768bd96f3faeba359cf33c1bd01ca424ca4d2d05f36a5d8345112ae93c.js
remote:        I, [2022-05-22T23:00:21.761407 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/stimulus.min-900648768bd96f3faeba359cf33c1bd01ca424ca4d2d05f36a5d8345112ae93c.js.gz
remote:        I, [2022-05-22T23:00:21.761616 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/stimulus-autoloader-c584942b568ba74879da31c7c3d51366737bacaf6fbae659383c0a5653685693.js
remote:        I, [2022-05-22T23:00:21.761759 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/stimulus-autoloader-c584942b568ba74879da31c7c3d51366737bacaf6fbae659383c0a5653685693.js.gz
remote:        I, [2022-05-22T23:00:21.761982 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/stimulus-importmap-autoloader-db2076c783bf2dbee1226e2add52fef290b5d31b5bcd1edd999ac8a6dd31c44a.js
remote:        I, [2022-05-22T23:00:21.762134 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/stimulus-importmap-autoloader-db2076c783bf2dbee1226e2add52fef290b5d31b5bcd1edd999ac8a6dd31c44a.js.gz
remote:        I, [2022-05-22T23:00:21.762364 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/stimulus-loading-1fc59770fb1654500044afd3f5f6d7d00800e5be36746d55b94a2963a7a228aa.js
remote:        I, [2022-05-22T23:00:21.762553 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/stimulus-loading-1fc59770fb1654500044afd3f5f6d7d00800e5be36746d55b94a2963a7a228aa.js.gz
remote:        I, [2022-05-22T23:00:21.762765 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/stimulus.min.js-5cdf38f474c7d64a568a43e5de78b4313515aa0e4bd3d13fac297fffeba809f0.map
remote:        I, [2022-05-22T23:00:21.766000 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/activestorage-3ab61e47dd4ee2d79db525ade1dca2ede0ea2b7371fe587e408ee37b7ade265d.js
remote:        I, [2022-05-22T23:00:21.766217 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/activestorage-3ab61e47dd4ee2d79db525ade1dca2ede0ea2b7371fe587e408ee37b7ade265d.js.gz
remote:        I, [2022-05-22T23:00:21.766355 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/activestorage.esm-01f58a45d77495cdfbdfcc872902a430426c4391634ec9c3da5f69fbf8418492.js
remote:        I, [2022-05-22T23:00:21.766439 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/activestorage.esm-01f58a45d77495cdfbdfcc872902a430426c4391634ec9c3da5f69fbf8418492.js.gz
remote:        I, [2022-05-22T23:00:21.766536 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/actioncable-5433453f9b6619a9de91aaab2d7fc7ff183e5260c0107cbc9a1aa0c838d9a74e.js
remote:        I, [2022-05-22T23:00:21.766603 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/actioncable-5433453f9b6619a9de91aaab2d7fc7ff183e5260c0107cbc9a1aa0c838d9a74e.js.gz
remote:        I, [2022-05-22T23:00:21.766694 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/actioncable.esm-e01089c3ec4fe7817fa9abcad06cab6bdc387f95f0ca6aab4bf7ba7537f70690.js
remote:        I, [2022-05-22T23:00:21.766757 #1237]  INFO -- : Writing /tmp/build_49574d85/public/assets/actioncable.esm-e01089c3ec4fe7817fa9abcad06cab6bdc387f95f0ca6aab4bf7ba7537f70690.js.gz
remote:        Asset precompilation completed (1.10s)
remote:        Cleaning assets
remote:        Running: rake assets:clean
remote: -----> Detecting rails configuration
remote: 
remote: ###### WARNING:
remote: 
remote:        Detecting rails configuration failed
remote:        set HEROKU_DEBUG_RAILS_RUNNER=1 to debug
remote: 
remote: ###### WARNING:
remote: 
remote:        There is a more recent Ruby version available for you to use:
remote:        
remote:        3.1.2
remote:        
remote:        The latest version will include security and bug fixes. We always recommend
remote:        running the latest version of your minor release.
remote:        
remote:        Please upgrade your Ruby version.
remote:        
remote:        For all available Ruby versions see:
remote:          https://devcenter.heroku.com/articles/ruby-support#supported-runtimes
remote: 
remote: ###### WARNING:
remote: 
remote:        No Procfile detected, using the default web server.
remote:        We recommend explicitly declaring how to boot your server process via a Procfile.
remote:        https://devcenter.heroku.com/articles/ruby-default-web-server
remote: 
remote: 
remote: -----> Discovering process types
remote:        Procfile declares types     -> (none)
remote:        Default types for buildpack -> console, rake, web
remote: 
remote: -----> Compressing...
remote:        Done: 50.8M
remote: -----> Launching...
remote:        Released v6
remote:        https://sheltered-retreat-93747.herokuapp.com/ deployed to Heroku
remote: 
remote: Verifying deploy... done.
To https://git.heroku.com/hogehoge-1010.git
 * [new branch]      main -> main

```

原因はローカルのbundlerとHerokuのbundlerのversionが違うようなので気をつけましょう。
あとrails チュートリアルではbranchがmasterになっているみたいですが、最近のgithubはデフォルトがmainになっているので間違えないように。