I am not understand why config.ru file in rails3. Please explain why is there?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
rails serverdoes the basic job of creating aRack::Builderobject and starting the webserver. This is Rails’ equivalent of Rack’srackupscript.Here’s how
rails servercreates an instance ofRack::BuilderTo use
rackupinstead of Rails’ rails server, you can put the following insideconfig.ruof your Rails application’s root directory:And start the server:
To find out more about different rackup options:
To know about more rakup please have a look Ruby on Rails guide