开发者

in Rails3 beta 4 where is the code that gets executed when you type 'rails server'?

开发者 https://www.devze.com 2023-01-04 03:37 出处:网络
I\'m tracing my way through the source code and can\'t seem to find where the command \"rails server\" would be for a generated app.Where is it?Also is theresome way 开发者_StackOverflow社区I can trac

I'm tracing my way through the source code and can't seem to find where the command "rails server" would be for a generated app. Where is it? Also is there some way 开发者_StackOverflow社区I can track down these things in the future?


In Rails 2 there was the script/server ruby script local to an application. In Rails 3, it appears they detect when they are inside a rails application path and have global scripts for all applications.

If your ruby install location was /ruby191, it would be in: /ruby191/lib/ruby/gems/1.9.1/gems/railties-3.0.0.beta4/lib/rails/commands/server.rb

0

精彩评论

暂无评论...
验证码 换一张
取 消