如何将宝石冻结到Rails 3应用程序中? [英] How do I freeze gems into a Rails 3 application?

查看:75
本文介绍了如何将宝石冻结到Rails 3应用程序中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在rails 2中有这个命令:

  rake gems:unpack 

我无法找到这个命令在Rails 3中。

解决方案

我还没有这样做,但我相信它全部由捆绑

当您创建一个新的rails3应用程序时,rails依赖项会被放入您的 Gemfile 中。您可以运行 bundle install 来安装它们。默认情况下,它们被安装到 BUNDLE_PATH 中。



如果你想在你的应用程序中安装它们,你可以指定其中: bundle install vendor / gems


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 command in Rails 3.

解决方案

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.

这篇关于如何将宝石冻结到Rails 3应用程序中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆