Skip to content

Instantly share code, notes, and snippets.

@scmx
Last active January 7, 2016 18:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scmx/b07361dd3071669320a7 to your computer and use it in GitHub Desktop.
Save scmx/b07361dd3071669320a7 to your computer and use it in GitHub Desktop.
Adding a new ruby version to a server with rbenv
ssh deploy@some-server
# Upgrade ruby-build (So it knows about the new ruby version and so can fetch it for us)
cd ~/.rbenv/plugins/ruby-build
git pull
# Grab a coffee while downloading ruby
rbenv install 2.2.4
# Make sure bundle command is available
gem install bundler
# Ready to deploy something with capistrano
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment