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

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

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

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Heroku

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

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Q&A

解決済

1回答

984閲覧

git push heroku masterしたらFailed to install gems via Bundler.エラーが出る

MISIAN-MISIAN

総合スコア73

Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Heroku

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

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

0グッド

0クリップ

投稿2021/04/24 12:29

mimemagic問題でFailed to install gems via Bundler.が出ると言うことを調べると出てきて
下記の記事のshared-mime-infoのインストールで対応しましたがエラーが直りません
原因はなんでしょうか?ご教授のほどよろしくお願いします。
mimemagic問題

ターミナル Installing dependencies using bundler 2.2.16 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 sqlite3 (>= 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: Your bundle is locked to mimemagic (0.3.3) from rubygems repository remote: https://rubygems.org/ or installed locally, but that version can no longer be remote: found in that source. That means the author of mimemagic (0.3.3) has removed it. remote: You'll need to update your bundle to a version other than mimemagic (0.3.3) that remote: hasn't been removed in order to install. remote: Bundler Output: Your Gemfile lists the gem sqlite3 (>= 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: Your bundle is locked to mimemagic (0.3.3) from rubygems repository remote: https://rubygems.org/ or installed locally, but that version can no longer be remote: found in that source. That means the author of mimemagic (0.3.3) has removed it. remote: You'll need to update your bundle to a version other than mimemagic (0.3.3) that remote: hasn't been removed 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: e344d8d12487b25f1b4ff06e2b4de252b350f9b2 remote: ! remote: ! We have detected that you have triggered a build from source code with version e344d8d12487b25f1b4ff06e2b4de252b350f9b2 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 ryutanew. remote: To https://git.heroku.com/ryutanew.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/ryutanew.git'

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

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

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

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

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

gouf

2021/04/24 12:39

「bundle update」を実行したあとに たぶん差分が発生すると思うのですが; それをコミット&プッシュした場合、何か変化は見られますか?
MISIAN-MISIAN

2021/04/24 13:28

プッシュしたら modified: Gemfile modified: Gemfile.lock と出たので中身確認したところ gemfile.lock内にmimemagic (~> 0.3.10)が新しく記載されていたのと、いくつかのgemfileがバージョンアップされているようでした。 mimemagic (~> 0.3.10)しっかりとインストールできていました。 mimemagic意外に原因があるのでしょうか?
gouf

2021/04/25 06:25

状況が分かりませんでした。 エラーメッセージ「Failed to install gems via Bundler. Push rejected, failed to compile Ruby app.」は表示されなくなったのでしょうか?
MISIAN-MISIAN

2021/04/25 06:34

rails のバージョンもあげてFailed to install gems via Bundler. Push rejected, failed to compile Ruby app. のエラーは解消されました。 ありがとうございました。
guest

回答1

0

自己解決

rails のバージョンもあげてgit push して git push heroku master行いエラーは消えました。

投稿2021/04/25 06:34

MISIAN-MISIAN

総合スコア73

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

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

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.49%

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

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

質問する

関連した質問