Make sure to add credentials.yaml file before running
Using capistrano 3
rvm rethinkdb
adduser deploy passwd -l deploy adduser deploy sudo
exec su -l $USER # may have to force relogin or login to get sudo group change to be respected
sudo apt-get install openjdk-7-jre
sudo add-apt-repository ppa:rethinkdb/ppa &&
sudo apt-get update &&
sudo apt-get install rethinkdb
sudo cp /etc/rethinkdb/default.conf.sample /etc/rethinkdb/instances.d/instance1.conf
sudo service rethinkdb start