恢复Rails 3的捆绑安装路径...现在安装在我的根目录中 [英] Restoring Rails 3's Bundle Install Path... It's now install in my root

查看:69
本文介绍了恢复Rails 3的捆绑安装路径...现在安装在我的根目录中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在尝试安装vestal_versions插件时我做了一些事情,最终在我的应用程序的根目录中使用以下命令创建了一个vestal_versions目录:

I did something while trying to install the vestal_versions plug-in that ended up creating a vestal_versions directory in my app's root with the following:

 - Application
  - APP
  - DB
   - vestal_versions
    - ruby
     - 1.8
      - bin
      - cache
      - doc
      - gems
      - specifications

如果删除则会阻止应用程序正在工作...我该如何更新捆绑包以将所有这些东西安装在正确的位置,我认为该位置不在应用程序之外?

Which if deleted prevents the app from working... How do I update bundle to install all this stuff in the right place, which I believe is outside of the app?

推荐答案

bundle install<目录名> 使捆绑程序将gems安装在相应目录中。运行 bundle install --system 会将安装目录设置回系统目录,而不是您提供的自定义目录。

bundle install <directory name> makes the bundler install the gems in the respective directory. Running bundle install --system will set the install directory back to the system directory rather than the custom one you provided.

这篇关于恢复Rails 3的捆绑安装路径...现在安装在我的根目录中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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