On 2014-Jun-2, at 09:30 , Walter Lee D. email@example.com wrote:
This is normal. You need to run Rake from within the same folder as a Rakefile,
as the error indicates.
Make sure that your PATH is set to include the folder where rake lives, so that
you can type the command from anywhere (not a fully-qualified path to the
executable as you seem to have done here) and it will pick up the current folder
as its working environment.
Actually, rake will search “upwards” in the directory structure to find
a Rakefile (with any of the names indicated) and then the tasks will be
executed with the current directory set to where the Rakefile was found.
This allows you to be in a subdirectory of a project and still issue the
rake commands. Of course, now that Rails expects you to have ./bin in
your PATH, finding the rake executable is a bit more complicated than it
used to be.