0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【Heroku】Failed to install gems via Bundler.の解決方法

Posted at

仮想環境構築中、いっそのこと新しいバージョンにできるものは
バージョンアップした結果、bundlerがHerokuに対応していないバージョンになったためだったと思います。

解決策

bundlerを2.1.4に戻したら、デプロイできました。

# バージョン確認
$ bundler -v
Bundler version 2.2.11

$ gem list bundler
gem list bundler
bundler (2.2.11)
capistrano-bundler (2.0.1)

capistranoは自動デプロイツールのようです。

下記、参考サイトを見ながらbundlerの入れ直しを行いました。

# bundler削除
$ gem uninstall bundler
Successfully uninstalled bundler-2.2.11

# 2.1.4インストール
$ install bundler -v 2.1.4
Successfully installed bundler-2.1.4

# バージョン確認
$ bundler -v
Bundler version 2.1.4

# 再度bundle
$ bundle install

これでgit pushしてから、
git push herokuで正常にデプロイできました。

新しいバージョンだからいいってもんでは、
やっぱりないのですね(o'∀')ノ

参考サイト

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?