开发者

Restoring Rails 3's Bundle Install Path... It's now install in my root

开发者 https://www.devze.com 2023-01-16 06:34 出处:网络
I did something while trying to install the vestal_versions plug-in that ended up creating a vestal_versions directory in开发者_StackOverflow社区 my app\'s root with the following:

I did something while trying to install the vestal_versions plug-in that ended up creating a vestal_versions directory in开发者_StackOverflow社区 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 <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.


I had the same problem and found that I had a .bundler directory in my application's root folder that was causing this. After I removed the directory, the bundle install installed everything to the correct ruby directory again. Thanks to this post by Caleb.


I've had this problem a few times. From the root directory of your project check if you have a .bundle/config file. It should contain only:

--- {}

Delete anything else in the file and bundle install should return to installing outside of your project root.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号