I am using Ruby on Rails and I see a ‘Rakefile’ in my application’s root directory. What is its purpose and when will it get executed?
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.
The
Rakefileis a ruby-written file which contains the definition of Rake tasks.Here you can find a small introduction to Rake.
The
Rakefilecan include other Ruby files. This is the case of Rails projects.In fact, in a Rails project you shouldn’t change the Rakefile directly. Instead, you can add more rake tasks by creating .rake files in the
lib/tasksfolder of your Rails project.