Skip to content

Instantly share code, notes, and snippets.

@jimmynguyc
Last active September 14, 2015 09:33
Show Gist options
  • Save jimmynguyc/15b3c4691f466ca729b2 to your computer and use it in GitHub Desktop.
Save jimmynguyc/15b3c4691f466ca729b2 to your computer and use it in GitHub Desktop.
Install ruby dependancies
#!/bin/bash
sudo apt-get update
sudo aptitude install -y build-essential git libssl-dev libreadline6 libreadline6-dev libpq-dev nodejs curl
sudo aptitude install -y postgresql redis-server nginx monit
# Rbenv
cd ~/
curl https://raw.githubusercontent.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash
cat <<'EOF' >> ~/.bashrc
# Rbenv
export RBENV_ROOT="${HOME}/.rbenv"
if [ -d "${RBENV_ROOT}" ]; then
export PATH="${RBENV_ROOT}/bin:${PATH}"
eval "$(rbenv init -)"
fi
EOF
source ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment