1
0
Fork 0
deploying-rails-app/slides/install-ruby.md

24 lines
477 B
Markdown
Raw Normal View History

2016-03-08 21:34:06 -05:00
## Install Ruby
* `sudo su - app`
* Install rbenv
```
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
source ~/.bash_profile
```
* Install and use Ruby
```
rbenv install 2.3.0
rbenv global 2.3.0
gem install bundler
```
note:
- rbenv vs rvm vs chruby: pick whichever you want