Created
May 24, 2012 09:14
-
-
Save mizchi/2780416 to your computer and use it in GitHub Desktop.
rails and node
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
#!/bin/bash | |
sudo apt-get update | |
# = utils | |
sudo apt-get -y install ssh curl git | |
# = rvm requirements | |
sudo apt-get -y install 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 ncurses-dev automake libtool bison subversion | |
# = rvm | |
curl -L get.rvm.io | bash -s stable | |
source /home/aiming/.rvm/scripts/rvm | |
# rvm bugfix for bash | |
cat ~/.zlogin >> ~/.bashrc | |
cat ~/.zshrc >> ~/.bashrc | |
source ~/.bashrc | |
rvm install 1.9.3 | |
rvm use 1.9.3 --default | |
gem install rails bundler | |
# = nodebrew | |
curl https://raw.github.com/hokaccha/nodebrew/master/nodebrew | perl - setup | |
echo 'export PATH=~/.nodebrew/current/bin:$PATH' >> ~/.bashrc | |
source ~/.bashrc | |
nodebrew install v0.6 | |
nodebrew use v0.6 | |
npm install coffee-script mocha -g |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment