前提・実現したいこと
アプリケーションをHerokuへ追加するためにコミットプッシュしました
git pusu heroku master
するとターミナルでこのようなエラーがでました
発生している問題・エラーメッセージ
Enumerating objects: 163, done. Counting objects: 100% (163/163), done. Delta compression using up to 8 threads Compressing objects: 100% (146/146), done. Writing objects: 100% (163/163), 158.65 KiB | 6.10 MiB/s, done. Total 163 (delta 29), reused 0 (delta 0) remote: Compressing source files... done. remote: Building source: remote: remote: -----> Building on the Heroku-18 stack remote: -----> Determining which buildpack to use for this app remote: ! Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used. remote: Detected buildpacks: Ruby,Node.js remote: See https://devcenter.heroku.com/articles/buildpacks#buildpack-detect-order remote: -----> Ruby app detected remote: -----> Installing bundler 2.2.11 remote: -----> Removing BUNDLED WITH version in the Gemfile.lock remote: -----> Compiling Ruby/Rails remote: -----> Using Ruby version: ruby-2.6.5 remote: -----> Installing dependencies using bundler 2.2.11 remote: Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 bundle install -j4 remote: Fetching gem metadata from https://rubygems.org/............ remote: Your bundle is locked to mimemagic (0.3.5), but that version could not be found remote: in any of the sources listed in your Gemfile. If you haven't changed sources, remote: that means the author of mimemagic (0.3.5) has removed it. You'll need to update remote: your bundle to a version other than mimemagic (0.3.5) that hasn't been removed remote: in order to install. remote: Bundler Output: Fetching gem metadata from https://rubygems.org/............ remote: Your bundle is locked to mimemagic (0.3.5), but that version could not be found remote: in any of the sources listed in your Gemfile. If you haven't changed sources, remote: that means the author of mimemagic (0.3.5) has removed it. You'll need to update remote: your bundle to a version other than mimemagic (0.3.5) that hasn't been removed remote: in order to install. 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: bc7bfad8d2644e5eedea58b231de870650dd0041 remote: ! remote: ! We have detected that you have triggered a build from source code with version bc7bfad8d2644e5eedea58b231de870650dd0041 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 ajax-app-35188. remote: To https://git.heroku.com/ajax-app-35188.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https:
該当のソースコード
ruby rubyonrils javascript
試したこと
https://www.softel.co.jp/blogs/tech/archives/3569
こちらの方法を試しましたがうまくいかず
masterがmainに変更になってるという記事もあり試しましたが無反応でした
補足情報(FW/ツールのバージョンなど)
ここにより詳細な情報を記載してください。
エラーメッセージはもっと長いはずなので、全部貼ってください。
すいません。以下になります
Enumerating objects: 163, done.
Counting objects: 100% (163/163), done.
Delta compression using up to 8 threads
Compressing objects: 100% (146/146), done.
Writing objects: 100% (163/163), 158.65 KiB | 6.10 MiB/s, done.
Total 163 (delta 29), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Building on the Heroku-18 stack
remote: -----> Determining which buildpack to use for this app
remote: ! Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used.
remote: Detected buildpacks: Ruby,Node.js
remote: See https://devcenter.heroku.com/articles/buildpacks#buildpack-detect-order
remote: -----> Ruby app detected
remote: -----> Installing bundler 2.2.11
remote: -----> Removing BUNDLED WITH version in the Gemfile.lock
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-2.6.5
remote: -----> Installing dependencies using bundler 2.2.11
remote: Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 bundle install -j4
remote: Fetching gem metadata from https://rubygems.org/............
remote: Your bundle is locked to mimemagic (0.3.5), but that version could not be found
remote: in any of the sources listed in your Gemfile. If you haven't changed sources,
remote: that means the author of mimemagic (0.3.5) has removed it. You'll need to update
remote: your bundle to a version other than mimemagic (0.3.5) that hasn't been removed
remote: in order to install.
remote: Bundler Output: Fetching gem metadata from https://rubygems.org/............
remote: Your bundle is locked to mimemagic (0.3.5), but that version could not be found
remote: in any of the sources listed in your Gemfile. If you haven't changed sources,
remote: that means the author of mimemagic (0.3.5) has removed it. You'll need to update
remote: your bundle to a version other than mimemagic (0.3.5) that hasn't been removed
remote: in order to install.
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: bc7bfad8d2644e5eedea58b231de870650dd0041
remote: !
remote: ! We have detected that you have triggered a build from source code with version bc7bfad8d2644e5eedea58b231de870650dd0041
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 ajax-app-35188.
remote:
To https://git.heroku.com/ajax-app-35188.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https:/
mimemagic 問題ですね。Rails を最新のマイナーバージョン (5.2.5 / 6.0.3.6 / 6.1.3.1) に更新しましょう。
https://hackmd.io/@mametter/mimemagic-info-ja
ありがとうございます! 試してみまます!!
あなたの回答
tips
プレビュー