On 2014-Jun-2, at 09:30 , Walter Lee Davis <waltd@wdstudio.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.
>
> Walter
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.
-Rob
>
> On Jun 2, 2014, at 9:24 AM, Rachita Dangare wrote:
>
>> Hi
>>
>> I have installed gem install rake on my machine.
>> but when I run command rake
>>
>> C:\Ruby193\lib\ruby\gems\1.9.1>rake
>>
>> it gives error message as
>>
>> rake aborted!
>> No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb,
>> Rakefile.rb)
>>
>> (See full trace by running task with --trace)
>>
>> kindly help me.
>>
>> Thanks,
>> Rachita
>>
>> --
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/754D4C11-3443-458F-95AA-B8DA9D7B68DC%40agileconsultingllc.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment