Trouble-free rbenv and bundler
Setting up a sane ruby/bundler environment isn't hard, if you use the right tools.
Install rbenv by following the instructions at https://github.com/sstephenson/rbenv#basic-github-checkout.
Follow Glenn's instructions at https://gist.github.com/glv/6004197.
-
Install rbenv-binstubs:
git clone https://github.com/ianheggie/rbenv-binstubs.git ~/.rbenv/plugins/rbenv-binstubs
-
Install ruby-build:
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
Restart your shell to apply the profile changes that rbenv made.
You will need to run bundle install
in all of your projects, and maybe rbenv rehash
if a new gem is installed. Use rbenv install <version>
to install required versions of ruby.
Written by David Hassler
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#