[RoR] 快快樂樂學RoR – Day2

看了 XDite 的電子書Chap3, 建議要安裝powder管理server, 不知道是否有其必要性(?)

先跳過裝powder, 繼續看Chap3

廣告

[RoR] 快快樂樂學RoR – Day1

今天開始記錄每天學習RoR的日誌

先從複習 “web application architectures" 開始

TODO: RSpec & TDD Tutorial

[轉] 安裝乾淨的Rails環境在OS X

1. Command Line Tools

Install Package or “xcode-select –install” from terminal

2. Homebrew

$ ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
$ brew install automake

3. RVM

$ \curl -L https://get.rvm.io | bash -s stable --ruby
$ source ~/.rvm/scripts/rvm

4. Ruby 1.9.3

$ rvm install 1.9.3-head
$ rvm use ruby-1.9.3-head

5. Rails

$ gem install rails

6. Git

brew install git

7. MySQL

$ brew install mysql
$ mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp
$ mkdir -p ~/Library/LaunchAgents
$ cp /usr/local/Cellar/mysql/5.5.27/homebrew.mxcl.mysql.plist ~/Library/LaunchAgents/
$ launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist

資料來源:https://coderwall.com/p/auvm9g
http://carolhsu.github.io/blog/2012/11/07/an-zhuang-gan-jing-de-railshuan-jing-zai-os-x-10-dot-8-rvm-plus-postgresql/