0

Hello I'm trying to run the following commands to prep my Rails app for production:

bundle lock --add-platform ruby

bundle lock --add-platform x86_64-linux

Then I get this error:

Cannot write a changed lockfile while frozen.

What is going on here? What is the lockfile for? What does it mean to be frozen?

CJG
  • 457
  • 2
  • 17

2 Answers2

7

Running the following command allowed me to write to my lock file

bundle config unset deployment   
CJG
  • 457
  • 2
  • 17
0

thats because you are in production and you dont want any changes to you Gemfile.lock file in deployment, so you freeze it, to unfreeze it run:

bundle config unset frozen
Azeer Esmail
  • 124
  • 2
  • 3