Skip to content

Instantly share code, notes, and snippets.

@rbmrclo
Last active October 18, 2019 15:43
Show Gist options
  • Save rbmrclo/5900017 to your computer and use it in GitHub Desktop.
Save rbmrclo/5900017 to your computer and use it in GitHub Desktop.
Create a gemset per project
# I'm not using this anymore
#
# Assuming that you are already on your project directory.
# Step 1: rvm gemset create [name of gemset]
# Step 2: rvm --rvmrc [ruby version here]@[name of gemset] # Note: You can check your current ruby version by running "ruby -v" from your console.
# Step 3: Refresh your directory, you can do this by simply checking out of your directory via command: cd.. and going back to that directory again.
# Step 4: RVM will ask you a simple Yes, No, View, Cancel question. Press Y for yes.
# Step 5: You're done! Run bundle install.
# Live example:
# Current directory: Projects/DumbProject
# Current ruby version: ruby-1.9.3-p327
# rvm gemset create dumb
# rvm --rvmrc ruby-1.9.3-p327@dumb
# cd..
# cd dumb
# y # For Yes
# bundle install
# Use this instead!
rvm use ruby-2.0.0@project_name --ruby-version --create
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment