If something fails double check you are in the right folder

This is part of the Semicolon&Sons Code Diary - consisting of lessons learned on the job. You're in the dumb-mistakes-and-gotchas category.

Last Updated: 2024-04-25

I wanted Rails to list the middleware for my oxnotes4 application, so I ran:

(oxnotes-docservices) $ rake middleware
=> rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)

I spent more time than I'd like to admit looking up this error online. It turned out the command was fine - I was just running it in the wrong folder (oxnotes-docservices) instead of oxnotes4. It's a silly mistake, I know, but awareness of the types of silly mistakes we make helps us be more thorough in avoiding them and faster in recovering from them.

Lesson

If something is not working, double check you are running it from the right folder.