简体   繁体   中英

I don't want to install gems to ./vendor anymore

I uninstalled the bundler gem and reinstalled it, cleaned out all my gems, removed the vendor/ directory and ran another bundle command. All my gems still went into vendor even though I didn't specify --path vendor on the second time around. Is there another --path option to set it to default? Where do Rails apps put gems they install to begin with?

You've just discovered one of the reasons for rvm . rvm will create gemsets that are stored in your user path that you can then version, update or clean if you no longer need them.

This is all done outside of the application path so you can re-use the same gem version across applications, or create new gemsets that are specific to an application. Take a walk through their documentation, once you start using it you'll wonder how you got along without it before.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM