Skip to content

Instantly share code, notes, and snippets.

@es
Created November 15, 2013 05:02
Show Gist options
  • Save es/7479369 to your computer and use it in GitHub Desktop.
Save es/7479369 to your computer and use it in GitHub Desktop.
Build script for a new dev machine when working with ruby.
#!/usr/bin/env bash
apt-get update
apt-get install -y nginx vim make g++ postgresql-9.1 curl libxslt-dev libxml2-dev libsqlite3-dev
\curl -L https://get.rvm.io | bash -s stable
source /usr/local/rvm/scripts/rvm
rvm requirements
rvm install ruby
rvm use ruby --default
rvm rubygems current
gem install rails
gem install execjs
wget http://nodejs.org/dist/v0.10.21/node-v0.10.21.tar.gz
tar -xvf node-v0.10.21.tar.gz
rm node-v0.10.21.tar.gz
cd node-v0.10.21/
./configure
make
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment