質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.35%
Git

Gitはオープンソースの分散バージョン管理システム(DVCS)です。

Heroku

HerokuはHeroku社が開発と運営を行っているPaaSの名称です。RubyやNode.js、Python、そしてJVMベース(Java、Scala、Clojureなど)の複数のプログラミング言語をサポートしている。

Q&A

0回答

1075閲覧

herokuでエラーがでました

chibi0310mayu

総合スコア3

Git

Gitはオープンソースの分散バージョン管理システム(DVCS)です。

Heroku

HerokuはHeroku社が開発と運営を行っているPaaSの名称です。RubyやNode.js、Python、そしてJVMベース(Java、Scala、Clojureなど)の複数のプログラミング言語をサポートしている。

0グッド

0クリップ

投稿2021/03/31 07:43

編集2021/03/31 11:20

前提・実現したいこと

アプリケーションを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/ツールのバージョンなど)

ここにより詳細な情報を記載してください。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

hoshi-takanori

2021/03/31 10:08

エラーメッセージはもっと長いはずなので、全部貼ってください。
chibi0310mayu

2021/03/31 10:25

すいません。以下になります 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:/
chibi0310mayu

2021/03/31 10:59 編集

ありがとうございます! 試してみまます!!
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.35%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問