简体   繁体   中英

How to use gemset in rbenv?

I'm new to the concept of gemset and I'm trying to create a new gemset for my existing project.

I've installed the plugin and followed the steps as mentioned here

https://github.com/jf/rbenv-gemset

Can anyone tell me what is the exact way to use the gemset in an existing project?

Gemsets are nice if you work on multiple projects and don't want to pollute/break your global gemset when you install your various gems.

You can create a local file in your project dir like the docs say:

echo "my-cool-project" > .rbenv-gemsets

Now when you switch to that dir your project will use the gemset called my-cool-project

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