Freezing Rails gem versions

后端 未结 2 2021
失恋的感觉
失恋的感觉 2021-01-23 10:23

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:f

相关标签:
2条回答
  • 2021-01-23 11:05

    rake rails:freeze:gems is an old Rails 2 way of doing it. I think you want to use Bundler's bundle install vendor/gems

    "How do I freeze gems into a Rails 3 application?" seem to answer it better.

    0 讨论(0)
  • 2021-01-23 11:14

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

    $ bundle package
    

    Refer this link

    0 讨论(0)
提交回复
热议问题