Ubuntu Server Edition, RVM, and Ruby Enterprise Edition

This is more me thinking out loud, or on paper, or… um… ya know. I’ve started the endeavorer of setting up my own ruby server that I can deploy to.

Disclaimer

This is a pet project. I am not a system admin or experience ruby developer. I have never used rvm before either. I have have never used Ubuntu Server Edition before either.

RVM Installation

Install necessary prerequisites for the RVM installation

sudo apt-get install git-core curl vim

Follow the directions from RVM: http://rvm.beginrescueend.com/rvm/install/

bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )

RVM Post Insall

vim .bashrc

Change this line

[ -z "$PS1" ] && return

to

if [[ -n "$PS1" ]]; then

Add this to the bottom of the file

fi
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.

Exit and save by hitting ESC and typing :wq then hit enter.

To load rvm into your current shell

source ~/.rvm/scripts/rvm

To find out additional dependencies you may need to install

rvm notes

Installing Ruby Enterprise Edition

rvm install ree
rvm use ree
rvm --default ree
ruby -v