more emphasis on boot.rb?
Reported by Xavier Noria | December 19th, 2007 @ 11:09 PM | in Second Edition
This is just a remark. It turns out that script/server, script/runner, and script/console load first boot.rb, and then environment.rb.
I think there's redundancy there and they could just load environment.rb directly, but that's the way they are written. Since boot.rb does nothing if it was already run, the load in environment.rb of boot.rb just returns, and then the initializer block computes load_paths again.
So if you launch the server and Rails is not under vendor the gem version, if any, is extracted with a regexp because environment.rb has not yet been loaded.
The regexp is much robust in 2.0 than in previous versions, it allows some optional whitespace, single and double quotes, and gems version operators.
boot.rb has been vastly cleaned as well, it was a script before, and now it is very structured and clear.
Comments and changes to this ticket
-
Obie January 7th, 2008 @ 08:38 PM
- → State changed from new to open
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
