Search code examples
ruby-on-railsrubygemsrake

Freezing Rails gem versions


I am trying to freeze my Rails gem version as, day by day, some or the other gem version gets updated and sometimes I need to update the code.

I tried rake rails:freeze:gems but this gave me error:

rake aborted!
Don't know how to build task 'rails:freeze:gems'

Solution

  • This locks and then caches the gems into ./vendor/cache.

    $ bundle package
    

    Refer this link