Failed to execute rake db:create

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)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值