Skip to content

Instantly share code, notes, and snippets.

@a2ikm
Created August 1, 2011 05:47
Show Gist options
  • Select an option

  • Save a2ikm/1117631 to your computer and use it in GitHub Desktop.

Select an option

Save a2ikm/1117631 to your computer and use it in GitHub Desktop.
install_rails
curl get.pow.cx | sh
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile
source ~/.bash_profile
echo 'export rvm_archflags="-arch x86_64"' >> ~/.rvmrc
rvm pkg install readline
rvm pkg install openssl
rvm pkg install zlib
rvm install 1.9.2 --with-zlib-dir=$rvm_path/usr --with-openssl-dir=$rvm_path/usr --with-readline-dir=$rvm_path/usr
rvm use 1.9.2@global
gem install bundler powder sqlite3 mysql2
rvm use 1.9.2@rails3 --create --default
gem install rails
# サンプルアプリ
mkdir -p ~/works
cd ~/works
rails new sampleapp
cd sampleapp
bundle
powder
open http://sampleapp.dev/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment