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

AnApprentice picture AnApprentice · Sep 11, 2010 · Viewed 8k times · Source

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?

Answer

Jessie Dedecker picture Jessie Dedecker · Nov 6, 2010

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.