Rails 2.x start up (boot up) process

Here’s a “hierarchal summary” of The Rails startup process from a paragliders perspective – artweb design.

By hierarchal, I mean its organized by how the code is executed. By summary, I mean things that I was interested in.

Rais app starts by runningĀ  environment.rb

  • boot.rb is required (require File.join(File.dirname(__FILE__), ‘boot’))
    • Defines RAILS_ROOT constant (points to Rails app location)
    • branches out to different boot mechanisms for booting up Rails from the vendor/rails directory or from the Rails gem respectively
    • Rails::Initializer #run called (setsĀ  $LOAD_PATH to the Rails libraries and your application)