D:/Nebular/Ruby192/bin>rake db:create
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
D:/Nebular/Ruby192/lib/ruby/1.9.1/rake.rb:2367:in `raw_load_rakefile'
D:/Nebular/Ruby192/lib/ruby/1.9.1/rake.rb:2007:in `block in load_rakefile'
D:/Nebular/Ruby192/lib/ruby/1.9.1/rake.rb:2058:in `standard_exception_handling'
D:/Nebular/Ruby192/lib/ruby/1.9.1/rake.rb:2006:in `load_rakefile'
D:/Nebular/Ruby192/lib/ruby/1.9.1/rake.rb:1991:in `run'
D:/Nebular/Ruby192/bin/rake:31:in `<main>'
Answer:
The path is wrong. we should execute the rake command under the application file path, which contains the essential Rakefile.
for example: D:/Wspace/RubyonRails/HelloWeb
D:/Wspace/RubyonRails/HelloWeb>rake db:create
(in D:/Wspace/RubyonRails/HelloWeb)
本文介绍了一个关于在错误路径下执行rake命令导致找不到Rakefile的问题,并提供了正确的执行路径示例。

1183

被折叠的 条评论
为什么被折叠?



