Why won't Heroku accept my Gemfile.lock in Windows?

后端 未结 5 1256
温柔的废话
温柔的废话 2020-12-03 08:12

I have a rails application that I deploy on Heroku. I\'m using several different machines, and I noticed that when I add new dependencies (so that Gemfile.lock

5条回答
  •  时光说笑
    2020-12-03 09:01

    Just battled through this problem for a while.

    I trimmed my gemfile back to just rails and still had the issue. Then, thinking that heroku had demanded an update of the heroku gem today, I looked closer at heroku changes.

    It seems the 1.9.2 ruby "bamboo" stack is now the default one - my app is still running on the 1.8.7 stack. So I ran "heroku stack:migrate bamboo-mri-1.9.2" and updated the stack to 1.9.2 - not something I wanted to do, but you know what, it fixed the issue above.

    Of course, I didn't want to be on the 1.9.2 stack, so I migrated back down to the 1.8.7 stack, and things installed correctly again. So I think this is a workaround - and probably an overly complex one - but it seemed to "flush" whatever the error was heroku-side. As nothing I did locally (and I tried a LOT of things from StackOverflow articles) had any effect, the push just kept failing as above.

    So yeah, this fixes it. Doesn't take too long either. But suspect a better workaround may be spotted by more heroku-knowledgeable developers !

提交回复
热议问题