How to force rack to work around the usual “You have already activated rack…” bug?

后端 未结 6 1832
日久生厌
日久生厌 2021-01-01 11:21

This is a common question, but none of the answers seem to solve the issue. I get the usual: You have already activated rack 1.4.1, but your Gemfile requires rack 1.3.

6条回答
  •  情书的邮戳
    2021-01-01 12:05

    This problem is also common when you clone the project from a repository (ejem. github), because it might have the Gemsfile.lock already. So the gems it has might be different than the ones your enviroment has already loaded. So, firts get a backup of your Gemsfile.lock, then remove it and run bundle install --without production .It will install all your dependecies according with the GemFile. Be aware that if the application is old it might not work with the environment on your machine.

提交回复
热议问题