Failed to install gems via Bundler. 1

Failed to install gems via Bundler.

Failed to install gems via Bundler.

I solved this issue this way:

bundle update
git add Gemfile.lock
git commit -m 'Update Gemfile.lock for Heroku'
git push heroku master

Here is what the above code is Doing:
1. bundle update
– This updates the Gemfile.lock file to the latest version of the gems.
2. git add Gemfile.lock
– This adds the Gemfile.lock file to the staging area.
3. git commit -m ‘Update Gemfile.lock for Heroku’
– This commits the Gemfile.lock file to the repository.
4. git push heroku master
– This pushes the code to Heroku.

Similar Posts