heroku: Gemfile.lock is required issue
Few things
- Did you placed Gemfile.lock in git? if yes, is it lock (means updated? - you did several times just double check)
- Just do
bundle install
on your local prompt. - now place Gemfile.lock
git add .
or you can add only Gemfile.lock with thisgit add Gemfile.lock
- git commit -m "commit message here"
- git push
Now do git push heroku
it should work.
Cannot push to Heroku (gemfile.lock issue)
The answer was deceptively simple (of course):
git push staging staging:master
The issue was that I was on the staging
branch and needed to update my Heroku staging server's master
branch.
Shame on me for overlooking something so obvious!
... and shame on Heroku's decidedly unhelpful output.
Gemfile.lock not checked in - Heroku
Found the answer at - http://www.unityisplural.com/2010/11/hobo-finally.html
Rails app - Heroku push rejected - Seeming Gemfile and Gemfile.lock issue
Delete your Gemfile.lock and run bundle install again
Heroku Deployment Gemfile.lock Problem
Well it turns out the answer was pretty simple. According to the Heroku Support Guy, you can't use if statements in your Gemfile. The offending line from my Gemfile was:
gem 'rb-fsevent', :require => true if (RUBY_PLATFORM =~ /darwin/i)
How do I fix a Bundler Conflict when pushing to Heroku?
I've ran into this issue some time ago: I contacted Heroku and they told me they have a locked version of Bundler, so your only option is to use the Bundler version they use:
gem uninstall bundler
gem install bundler -v 2.0.2
bundle update
Related Topics
Get Sidekiq to Execute a Job Immediately
How to Execute Custom Actions After Successful Sign in with Devise
Why Doesn't Ruby Have a Real Stringbuffer or Stringio
Force Browser to Download File Instead of Opening It
Rails: Encoding Woes with Serialized Hashes Despite Utf8
Activerecord::Connectiontimeouterror
Parse Email Addresses for "From" and "To" Fields in Ruby
An Algorithm for Converting a Base-10 Number to a Base-N Number
No Such File or Directory - Git Ls-Files -- Windows
Unix Commands Work on Server But Not in Ruby Ssh Session
Rails Unable to Convert Unpermitted Parameters to Hash
Testing If a Hash Has Any of a Number of Keys
Order Products by Association Count
Net::Ssh Sudo Command Hangs After Entering Password
Ruby Modulo 3 with Negative Numbers Is Unintuitive
In Ruby, Is There No Way to Dynamically Define a Local Variable in the Current Context
Error: While Executing Gem ... (Zlib::Gzipfile::Error) Not in Gzip Format