【해결】heroku-20 You are trying to install ruby-2.6.5 on heroku-20. The Ruby version you are trying to install does not exist on this stack.
문제 오류

해결책
1.Ruby 버전을 2.6.6, 2.7.2 또는 3.0.0으로 변경
(예) Ruby 버전을
2.6.6로 변경하는 경우1. Ruby 2.6.6 설치 (아래 터미널에서 실행) 참고
$ brew update // brewをアップデート
$ brew upgrade ruby-build // ruby-buildをアップデート
$ rbenv install 2.6.6 // ruby2.6.6 をインストール
$ rbenv global 2.6.6 // ruby2.6.6 をローカルのデフォルトに設定
2.
.ruby-version 버전을 2.6.6으로 변경3.
Gemfile의 Ruby 버전을 2.6.6으로 변경4. 재 bundle install
$ rm Gemfile.lock // Gemfile.lockを削除
$ rm -rf venvor/bundle // venvor/bundleを削除
$ bundle install --path vendor/bundle // インストールするパスを指定してbundle install
5.git add에서 heroku 배포까지 1 명령으로 실행
$ git add .; git commit -m 'fix: ruby version'; git push heroku master
2. <추기> heroku의 stack을 18로 내린다
터미널에서 현재 배포하려는 앱의 디렉토리로 이동하여 다음을 실행합니다.
$ heroku login // 実行後にエンターしてログイン
$ heroku stack:set heroku-18 // stackを heroku-18 に下げる
$ git push heroku master // デプロイ
참고
이상으로 배포 할 수 있었을 것!
원인
Heroku 공식 사이트 에, 현재 대응하고 있는 Ruby 의 버젼이 기재되어 있었다
지원되지 않는 Ruby 버전으로 배포했기 때문입니다.

오류 문(텍스트 복사)
remote: ! The Ruby version you are trying to install does not exist on this stack.
remote: !
remote: ! You are trying to install ruby-2.6.5 on heroku-20.
remote: !
remote: ! Ruby ruby-2.6.5 is present on the following stacks:
remote: !
remote: ! - cedar-14
remote: ! - heroku-16
remote: ! - heroku-18
remote: !
remote: ! Heroku recommends you use the latest supported Ruby version listed here:
remote: ! https://devcenter.heroku.com/articles/ruby-support#supported-runtimes
remote: !
remote: ! For more information on syntax for declaring a Ruby version see:
remote: ! https://devcenter.heroku.com/articles/ruby-versions
htps : // 이 m / ___ _ x x / / ms / b b85d26d50 f3940441c
htps : // 이 m/완/있어 ms/47983이다 d181에 6df4c867
htps : //에서 v 선 r. 헤로쿠. 코 m / 자 / 아 rc c ぇ s / 껄껄 g s r d
Reference
이 문제에 관하여(【해결】heroku-20 You are trying to install ruby-2.6.5 on heroku-20. The Ruby version you are trying to install does not exist on this stack.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/___fff_/items/12c8ab953bc6aaeb8c24텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)