I get this error message every now and then: You have modified your Gemfile in development but did not check the resulting snapshot (Gemfile.lock) into version control
Most people suggest removing the .bundle directory and running bundle install again making sure to add Gemfile.lock to the git repo before committing and pushing to heroku but that doesn't always resolve the problem. The easiest way to fix this is by removing Gemfile.lock and pushing to heroku without it. Heroku then bundles your gems for you, but informs you that you will soon be required to include a Gemfile.lock. I am trying to get my head round this problem. Can anyone tell my why this happens? I have on occasions tried wrapping certain gems in my Gemfile within and 'if statement' to prevent heroku from installing them as I only want them on my dev box. The error only seems to happen in apps that I've used this technique. Perhaps this is the source of these problems? When will Heroku start requiring you to add a Gemfile.lock and what are the best ways of preventing this problem? -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
