How do I freeze gems into a Rails 3 application?

后端 未结 13 2033
遇见更好的自我
遇见更好的自我 2020-12-08 16:30

I want to freeze a specific gem into my Rails application.

In rails 2 there was this command:

rake gems:unpack

I can\'t find that c

13条回答
  •  猫巷女王i
    2020-12-08 17:27

    I haven't had to do this yet, but I believe it's all handled by bundler.

    When you create a new rails3 app, the rails dependencies are put into your Gemfile. You can run bundle install to install them. By default, they are installed into your BUNDLE_PATH.

    If you want to install them within your app, you can specify where: bundle install vendor/gems.

提交回复
热议问题