开发者

Why only the first "rake" command is executed in a batch file?

I created reset_db.bat on Windows with the following content:

rake db:drop RAILS_ENV=development
rake db:c开发者_Python百科reate
rake db:migrate
rake db:seed

When I type reset_db only the first command (drop) is executed. Why ?


I assume that the rake is also a .bat file.

Then you only have to prepend it with a call

call rake db:drop RAILS_ENV=development
call rake db:create
call rake db:migrate
call rake db:seed
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜