Why won't Heroku accept my Gemfile.lock in Windows?
Like matt commented above:
The problem is that Bundler creates different Gemfile.lock
s for Windows. The only solution is to create and commit the lock file on a *NIX system.
I would suggest to create a virtual machine running e.g. Ubuntu – maybe using Virtual Box. You can even get ready-to-use virtual machines – for example here.
Rails - Error pushing to Heroku - not seeing Gemfile.lock
Get rid of all occurrences of -x86-mingw32
in the gem specs as well as lines
PLATFORMS
x86-mingw32
as Alex mentioned.
I understand why Heroku now requires Gemfile.lock, but overall I disagree with the practice.
Pushing to Heroku fails due to unsupported Ruby version even after Gemfile was changed
Heroku doesn't support Ruby 2.3.1, 2.3.3 or 2.4.0
Look at your log:
remote: ! An error occurred while installing ruby-2.3.1
remote: !
remote: ! This version of Ruby is not available on Heroku-18. The minimum supported version
remote: ! of Ruby on the Heroku-18 stack can found at:
remote: !
remote: ! https://devcenter.heroku.com/articles/ruby-support#supported-runtimes
Look at the link from your log:
Heroku supports the following Ruby versions and the associated Rubygems. A supported version means that you can expect our tools and platform to work with a given version. It also means you can receive technical support. Here are our supported Ruby versions:
MRI:
- 2.4.5 : patchlevel 335, Rubygems: 2.6.14.4
- 2.5.5: patchlevel 157, Rubygems: 2.7.6.2
- 2.6.2: patchlevel 33, Rubygems: 3.0.3
Also read information how to specify Ruby version.
Pay special attention to the Troubleshooting section. Looks like you didn't commit your Gemfile
and Gemfile.lock
after changing Ruby version and before pushing to Heroku.
Related Topics
How to Parse a CSV File, Update a Field, Then Save
A Method with an Optional Parameter
Flutter Pod Install Problem - Undefined Method 'Each_Child' For #≪Dir:0X00007Fa6F7E2Ec80≫
Has Anyone Tried Installing Ruby & Rubygems from Source on Ubuntu (Preferably Ubuntu 9)
Looking For Suggestions For Building a Secure Rest API Within Ruby on Rails
How to Monitor Delayed_Job With Monit
Limit Space and Memory Used by Imagemagick
Difference Between Gemfile and Gemfile.Lock in Ruby on Rails
How to Use Gem to Install Rails on Ubuntu
Mavericks, Rbenv, Your Ruby Version Is 2.0.0, But Your Gemfile Specified 2.1.1
Is This the Best Way to Unescape Unicode Escape Sequences in Ruby
Rvm Warning! Path Is Not Properly Set Up
How to Use Activerecord in a Ruby Script Outside Rails