Last active
August 29, 2015 13:57
-
-
Save kevinzhow/9354263 to your computer and use it in GitHub Desktop.
Bootstrap_Rails_Development
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
#!/usr/bin/env bash | |
# Pre-requisites | |
# Add Node.js PPA | |
sudo add-apt-repository ppa:chris-lea/node.js -y | |
# # Install Mongodb | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 -y | |
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list | |
# Add Nginx PPA | |
# nginx=development # use nginx=development for latest development version | |
sudo add-apt-repository ppa:nginx/$nginx -y | |
sudo apt-get -y update | |
sudo apt-get --no-install-recommends -y install nginx nginx-full mongodb-10gen nodejs python-software-properties python g++ make build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev libgdbm-dev ncurses-dev automake libtool bison subversion pkg-config libffi-dev vim | |
# # Install RVM and Latest ruby version | |
\curl -sSL https://get.rvm.io | bash -s stable --ruby | |
# # Install bundler | |
source ~/.rvm/scripts/rvm | |
rvm use ruby --default | |
gem install bundler | |
gem install chef | |
# Install Bower | |
npm install -g bower |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment