Hacker News new | past | comments | ask | show | jobs | submit login

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.



You can use Bundler to isolate your gems locally, or you can use rbenv-gemset:

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


For 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


You 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.


(You should only have to run this the first time you bundle.)


but does this not increase the size of your source control repository?


No, just add the directory to .gitignore.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: