4 ms·
Pretty nice, but I actually do really like having gemsets. It gets me as close to the production environment as possible, plus it makes it really easy to clean
by jarin 15y ago
Pretty nice, but I actually do really like having gemsets. It gets me as close to the production environment as possible, plus it makes it really easy to clean up unused gems when I'm done with a project.
- stephencelis 15y agoYou can use Bundler to isolate your gems locally, or you can use rbenv-gemset: https://github.com/jamis/rbenv-gemset https://github.com/jamis/rbenv-gemset
- nzadrozny 15y agoFor that, I use Bundler and always install gems to vendor/bundle for maximum isolation and easy cleanup. :~ which bi bi: aliased to bundle install --path vendor/bundle
- stephencelis 15y ago(You should only have to run this the first time you bundle.)
- mudgemeister 15y agoYou can tell Bundler to install to a relative path by default by putting the following in ~/.bundle/config: --- BUNDLE_PATH: vendor/bundle In that way, you need only run the standard "bundle" or "bundle install" instead of setting up an alias.
- hadis 15y agobut does this not increase the size of your source control repository?
- zszugyi 15y agoNo, just add the directory to .gitignore.