Hi, 我是 xdite。這個 projects 是因應目前 Rails 3.1 成立的升級教學網站。
Ruby on Rails 在 3.1 版加上不少新進的 feature。例如 : Assets Pipeline,內建 SCSS / Coffeescript 等等…
不過因為這次的架構變更,歷時和幅度也都不小,升級門檻有點高。
而我因為至今已經順利的升級了超過三個 Rails 3.0 -> Rails 3.1 Project,對升級歷程會發生的問題與解法已有著不錯的掌握度,因此開闢這個網站分享實戰 Rails 3.1 的一些實務心得。如果您有任何意見或勘誤,都歡迎 來信 或留言指教。
Part 1: What’s new in Rails 3.1
- Major changes
淺談 Asset Pipeline
- HTTP Streaming [TODO]
- ActiveRecord Identity Map [TODO]
Part 2: Upgrade Steps
STEP 1: Solve dependency issues / deprecated APIs
STEP 2: Apply Asset Pipeline
STEP 3: Prepare to deploy to staging / production
- prepare production enviorment
- install JavaScript runtime compiler
- Git ( Compass using git version as version)
- deploy to staging server to test results
Part 3: Fix Problems on production
- multiple server race condition problem
- vendor javascript plugins, ex: tinymce
- aseets cache
- assets uglifier
- assets path
- conflict rubygems
- how to solve conflict rubygems