Created
October 30, 2019 00:05
-
-
Save jfonte/78bdee26069b6d988bd5dcb29a74beb9 to your computer and use it in GitHub Desktop.
This file contains 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
# install-rails.sh | |
apt-get update | |
apt-get install -y git curl vim tmux redis-server postgresql libpq-dev zsh gnupg2 | |
# install rvm | |
gpg2 --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB | |
\curl https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer | bash -s stable | |
source /home/vagrant/.rvm/scripts/rvm | |
rvm install 2.6.0 | |
# install nvm | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.0/install.sh | bash | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" | |
# add vagrant user to postgres | |
sudo su - postgres | |
createuser vagrant -s | |
exit | |
# install yarn | |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | |
sudo apt update && sudo apt install --no-install-recommends yarn | |
# install ngrok | |
sudo snap install ngrok | |
#install rails | |
apt-get update | |
apt-get install rails | |
# install ohmyzsh | |
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment