Last active
September 14, 2015 09:33
-
-
Save jimmynguyc/15b3c4691f466ca729b2 to your computer and use it in GitHub Desktop.
Install ruby dependancies
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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