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

后端 未结 3 1079
星月不相逢
星月不相逢 2020-12-23 15:50

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:

         


        
相关标签:
3条回答
  • 2020-12-23 16:18

    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.

    0 讨论(0)
  • 2020-12-23 16:26

    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.

    0 讨论(0)
  • 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 讨论(0)
提交回复
热议问题