开发者

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

开发者 https://www.devze.com 2023-02-04 00:41 出处:网络
I created reset_db.bat on Windows with the following content: rake db:drop RAILS_ENV=development rake db:c开发者_Python百科reate

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

精彩评论

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