Created
August 1, 2011 05:47
-
-
Save a2ikm/1117631 to your computer and use it in GitHub Desktop.
install_rails
This file contains hidden or 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
| 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