Skip to content

Instantly share code, notes, and snippets.

@ticktricktrack
Created April 19, 2012 09:37
Show Gist options
  • Save ticktricktrack/2419970 to your computer and use it in GitHub Desktop.
Save ticktricktrack/2419970 to your computer and use it in GitHub Desktop.
rvm and bundler commands
"check if your gemset will be automatically set, cd'ing into the folder should automatically activate the right one specified in .rvmrc"
"open new terminal window"
rvm gemset name
# should say /Users/rainer/.rvm/gems/ruby-1.9.3-p125
rvm gemset use global
# should say Using ruby-1.9.3-p125 with gemset global
cd work/carrier-pigeon
rvm gemset name
# should say v2
"--------------------------------------------------"
"this part should get you to a clean, working state"
rvm gemset use v2
rvm gemset empty
rvm gemset use global
rvm gemset empty
gem install bundler awesome_print
rvm gemset use v2
bundle install
start a server, if you installed pow, it should be automatically up and running at carrier-pigeon.dev/
# restart with
touch tmp/restart.txt
# or start one manually
# the crappy one:
rails s
# the good one:
passenger start
#if the port is already taken append -p 3001
passenger start -p 3001
"--------------------------------------------------"
"Individual commands explained: "
# installs missing gems, but does NOT update existing gems
bundle install
# install and updates
bundle update
# checks if dependencies are satisfied
bundle check
# if you have no gems installed, you'll need to install bundler manually as a starting point
gem install bundler
# what gemset am I on?
rvm gemset list
# change gemset
rvm gemset use global (or v2)
# list all available gems( this includes the current and the global gemset)
gem list
# manually deleting all gems in the current gemset
rvm gemset empty
# check if ruby 1.9.3 is set as default
# it should be marked with =*
rvm list
# set default ruby
rvm use 1.9.3-p125 --default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment